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.
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.
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.
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.
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.
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.
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.
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.
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.
Database Incident Response Runbook: From Alert to Resolution
A practical runbook for database incidents — triage, diagnosis, escalation, and post-mortem for MySQL and PostgreSQL
PostgreSQL Wait Events: Understanding What Slows Your Database
Decode PostgreSQL wait events to diagnose lock contention, I/O bottlenecks, and CPU pressure in production
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.
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.
Get the latest database insights and expert tips delivered to your inbox.
Subscribe to our RSS feed for instant updates.
RSS Feed