JusDB
Free DB Audit

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.

81 canonical articlesBrowse the complete archive

Popular Searches

Performance Articles

← Clear filter

Showing 12 of 81 articles

PgBouncer: The Complete PostgreSQL Connection Pooling Guide

PgBouncer multiplexes thousands of application connections onto a small pool of real PostgreSQL server connections — reducing connection overhead without any application code changes.

PostgreSQL10 minOct 18, 2022
Read

MySQL InnoDB Locking: Deadlocks, Gap Locks, and Next-Key Locks Explained

A deep dive into InnoDB locking — record locks, gap locks, next-key locks, how READ COMMITTED eliminates gap locks, diagnosing deadlocks with SHOW ENGINE INNODB STATUS and performance_schema, and prevention patterns.

MySQL14 minOct 12, 2022
Read

Save Space on MySQL Data with Column Compression: InnoDB Page Compression and ROW_FORMAT

MySQL InnoDB supports multiple compression strategies — from ROW_FORMAT=COMPRESSED to transparent page compression using punch holes. Choosing the right approach can cut storage by 40-70% for text-heavy workloads.

MySQL16 minOct 6, 2022
Read

Redis Use Cases: Caching, Rate Limiting, Pub/Sub, Queues, and Session Storage

A practical guide to Redis use cases in production — cache-aside pattern, sliding window rate limiting, Pub/Sub vs Streams, BRPOP queues with delayed job scheduling, and session storage with persistence configuration.

Redis12 minOct 4, 2022
Read

Database Connection Pooling: PgBouncer, ProxySQL, and HikariCP Compared

A comprehensive guide to database connection pooling — comparing PgBouncer, ProxySQL, and HikariCP with configuration examples, pool mode trade-offs, and production sizing recommendations.

PostgreSQL12 minSep 27, 2022
Read

MySQL Connection Limits and Max Connections: Tuning for Scale

Understand MySQL max_connections, thread caching, and connection pool sizing to handle high-concurrency workloads

MySQL11 minSep 20, 2022
Read

Advanced Indexing Strategies for Database Scalability

Deep dive into advanced database indexing strategies including composite indexes, covering indexes, and partial indexes. Optimize query performance with expert indexing techniques.

5 minSep 13, 2022
Read

MySQL EXPLAIN Explained: How to Read Query Plans and Fix Slow Queries

MySQL's EXPLAIN command reveals exactly how the query optimizer plans to execute your SQL — which indexes it will use, how many rows it expects to examine, and where it may sort or create temporary tables.

MySQL11 minSep 6, 2022
Read

ElastiCache for Redis vs Memcached: Choosing the Right AWS Cache

Choose between ElastiCache Redis and Memcached — data structures, persistence, replication, and cost considerations

Redis10 minAug 3, 2022
Read

MySQL Slow Query Log: Enabling, Analyzing with pt-query-digest, and Fixing the Top Patterns

A production guide to MySQL slow query log — enabling with long_query_time and log_queries_not_using_indexes, analyzing with pt-query-digest, reading EXPLAIN output, and fixing full table scans and N+1 loops.

MySQL12 minJul 19, 2022
Read

MySQL Connection Lifecycle: Complete Guide to Connection Management and Optimization

Optimize MySQL connection management for maximum throughput. Learn connection pooling with HikariCP, ProxySQL load balancing, and thread pool configuration.

MySQL17 minJul 19, 2022
Read

Descending Indexes in MySQL 8.0: When and How to Use Them

MySQL 8.0 finally supports true descending indexes — eliminating the filesort that MySQL 5.7 required when sorting results in descending order. Here's how descending indexes work and when to add them.

MySQL7 minJul 15, 2022
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