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.

30 canonical articlesBrowse the complete archive

Popular Searches

Latest Articles

Showing 12 of 30 articles

PostgreSQL Deadlock Troubleshooting: Read the 40P01 Log Entry and Fix the Lock Order

Read PostgreSQL's deadlock detected error and server log entry, trace the statements that formed the cycle, and fix it with consistent lock ordering and safe retries.

PostgreSQL19 minNov 24, 2026
Read

PostgreSQL High CPU Usage: How to Find the Query and Fix It

Trace high CPU in self-managed PostgreSQL 16 to 18 from the hot OS process to the query and plan behind it, then rule out JIT, parallel workers, connections, and autovacuum.

PostgreSQL20 minNov 21, 2026
Read

Stopping Valkey Full-Resync Loops: Backlog Sizing and Dual-Channel Replication

Find out why Valkey replicas loop on full resyncs, size repl-backlog-size and the replica output buffer from your write rate, and decide when dual-channel replication helps.

Redis20 minNov 6, 2026
Read

PostgreSQL Lock Waits: How to Find the Blocking Query and Fix It

Find the session behind a PostgreSQL lock wait with pg_blocking_pids, see why a waiting ALTER TABLE stalls every SELECT, and choose between cancel, terminate, and timeouts.

PostgreSQL18 minOct 27, 2026
Read

MySQL High CPU Usage: Find the Cause and Fix It

Trace MySQL 8.4 and 8.0 high CPU usage from top -H to the exact statement, using performance_schema thread IDs, sys views and digest deltas, then fix it with a runbook.

MySQL21 minSep 15, 2026
Read

SQL Server Blocking Queries: Find the Head Blocker and Fix the Cause

Find the head blocker behind SQL Server blocking with DMVs and sp_WhoIsActive, capture blocked process reports, and fix the cause with RCSI, optimized locking, and LOCK_TIMEOUT.

Azure20 minJul 28, 2026
Read

MySQL "Communications Link Failure": Fix wait_timeout, HikariCP & All 8 Timeout Variables

MySQL wait_timeout, net_read_timeout, innodb_lock_wait_timeout and max_execution_time — production tuning rules and the HikariCP alignment trick that prevents 'communications link failure' errors.

MySQL6 minMay 9, 2026
Read

MariaDB Galera Cluster Production Guide: Mariabackup, MaxScale & Schema Strategy

Production MariaDB Galera Cluster: mariabackup-based SST, MaxScale Galera-aware routing, schema-change strategy with TOI vs RSU, and a troubleshooting playbook for the failures that actually take down production.

MySQL17 minMay 3, 2026
Read

Database Incident Response Runbook: From Alert to Resolution

A practical runbook for database incidents — triage, diagnosis, escalation, and post-mortem for MySQL and PostgreSQL

11 minJan 11, 2026
Read

PostgreSQL Wait Events: Understanding What Slows Your Database

Decode PostgreSQL wait events to diagnose lock contention, I/O bottlenecks, and CPU pressure in production

PostgreSQL11 minJan 2, 2026
Read

MongoDB Plan Cache Memory Issue: The SBE Bug and How to Fix It

MongoDB's Slot-Based Execution (SBE) engine introduced a plan cache memory leak affecting certain MongoDB versions — here's how to detect, mitigate, and fix it.

MongoDB8 minDec 8, 2025
Read

MongoDB 8.0 TTL Index Bug (SERVER-97368): What It Is and How to Fix It

A critical bug in MongoDB 8.0 (SERVER-97368) affects TTL index behavior — causing documents to persist beyond expiration or delete prematurely. Here's how to detect and mitigate it.

MongoDB7 minDec 4, 2025
Read