The JusDB Database Engineering Blog

Deep dives on PostgreSQL, MySQL, MongoDB and more — performance tuning, high availability, migrations and production war stories from our DBAs.

76 canonical articlesBrowse the complete archive

Popular Searches

Optimization Articles

← Clear filter

Showing 12 of 76 articles

Handling Index Fragmentation in MongoDB: Detection and Remediation

MongoDB indexes fragment over time as documents are inserted, updated, and deleted. Here's how to detect fragmentation, measure its performance impact, and rebuild indexes safely.

MongoDB8 minFeb 18, 2025
Read

Diagnosing MySQL Connection Saturation: Too Many Connections Fix

Systematically diagnose and fix MySQL 'Too many connections' errors. Learn to identify connection leaks, tune wait_timeout, and implement ProxySQL pooling.

MySQL1 minFeb 7, 2025
Read

PostgreSQL EXPLAIN ANALYZE: Reading Query Plans and Fixing Slow Queries

Use PostgreSQL EXPLAIN and EXPLAIN ANALYZE safely, interpret estimates and runtime evidence, and test the smallest change that addresses the real bottleneck.

PostgreSQL6 minJan 3, 2025
Read

MySQL Performance Tuning (2026): Fix Buffer Pool, Kill Unused Indexes, Stop Slow Queries

Master MySQL performance optimization with this comprehensive 2025 guide. Learn expert techniques for query tuning, indexing strategies, memory configuration, and InnoDB optimization to achieve 10x database performance improvements.

MySQL11 minNov 12, 2024
Read

MongoDB Indexing: A Complete Guide to Faster Queries

MongoDB's indexing system supports single-field, compound, multikey, text, geospatial, and partial indexes. Choosing the right index type and key order determines whether your queries use microseconds or seconds.

MongoDB11 minNov 16, 2023
Read

Securing MySQL Connections with SSL/TLS: A Complete Configuration Guide

MySQL transmits data in plaintext by default, exposing passwords and query results to network interception. Here's how to configure SSL/TLS for MySQL — from certificate generation to enforcing encrypted connections.

MySQL9 minSep 23, 2023
Read

Demystifying MySQL EXPLAIN FORMAT=TREE: Read Query Plans Like a DBA

MySQL 8.0 introduced EXPLAIN FORMAT=TREE — a hierarchical, human-readable query plan format that reveals join order, access methods, and cost estimates in a way that the traditional tabular EXPLAIN cannot.

MySQL9 minJul 27, 2023
Read

Improving Query Performance with Multi-Valued Indexes in MySQL 8.0

MySQL 8.0 introduced multi-valued indexes — allowing you to index individual elements of a JSON array so queries using MEMBER OF or JSON_OVERLAPS can use an index.

MySQL8 minJun 30, 2023
Read

Zero-Downtime Database Migrations: The Expand-Contract Pattern for MySQL and PostgreSQL

A production guide to zero-downtime database migrations — why ALTER TABLE causes downtime, the Expand-Contract pattern, safe migration patterns for PostgreSQL and MySQL, and tooling with Flyway, Liquibase, pt-osc, and gh-ost.

PostgreSQL14 minJun 27, 2023
Read

Query Plan Regression: Detecting and Fixing Bad PostgreSQL Plans

Detect query plan regressions in PostgreSQL using auto_explain, pg_hint_plan, and plan baseline management

PostgreSQL12 minMay 30, 2023
Read

pg_upgrade: Major PostgreSQL Version Upgrades with Minimal Downtime

Use pg_upgrade to migrate between PostgreSQL major versions — upgrade strategies, pre-checks, and rollback plans

PostgreSQL11 minMay 10, 2023
Read

ProxySQL: The Complete Guide to MySQL Load Balancing and Connection Pooling

ProxySQL pools thousands of application connections into a small backend pool, splits reads to replicas automatically, and lets you change routing without touching application code or restarting MySQL.

MySQL10 minMay 9, 2023
Read
Newsletter

Get the latest database insights and expert tips delivered to your inbox.

Stay Connected

Subscribe to our RSS feed for instant updates.

RSS Feed