Performance

11 tagged articles
Six hundred connections and a Monday morning: PgBouncer from 600 to 80 PostgreSQL connections without losing throughput
PostgreSQL

Six hundred connections and a Monday morning: PgBouncer from 600 to 80 PostgreSQL connections without losing throughput

12 microservices, 600 simultaneous connections, PostgreSQL on its knees. How PgBouncer cut real connections to 80 while improving throughput and stability. Transaction pooling, prepared statements, critical parameters.

The Monday morning report: four hours of MySQL replica lag
MySQL

The Monday morning report: four hours of MySQL replica lag

Four hours of lag on a MySQL replica in a logistics system. How we diagnosed it, why Seconds_Behind_Master lies, and what actually fixed it.

When an index does more harm than good: cleaning PostgreSQL waste
PostgreSQL

When an index does more harm than good: cleaning PostgreSQL waste

PostgreSQL: how to find and drop unused indexes with pg_stat_user_indexes. Real case: a table with 15 indexes, 8 of them never used.

pg_stat_statements: the first thing to install on any PostgreSQL
PostgreSQL

pg_stat_statements: the first thing to install on any PostgreSQL

PostgreSQL pg_stat_statements: the first query diagnostics extension to install. Find the three queries consuming 80% of database resources.

DWH Partitioning: When 3 Years of Data Weigh Too Much
Data Warehouse

DWH Partitioning: When 3 Years of Data Weigh Too Much

Range partitioning on an 800-million-row fact table: from 12-minute quarterly queries to 40 seconds. Monthly implementation, exchange and local indexes.

VACUUM and autovacuum: why PostgreSQL needs someone to clean up
PostgreSQL

VACUUM and autovacuum: why PostgreSQL needs someone to clean up

PostgreSQL VACUUM and autovacuum: bloat diagnosis on a 200 GB database, reading pg_stat_user_tables and tuning without disabling anything.

Oracle on Linux: the kernel parameters nobody configures
Oracle

Oracle on Linux: the kernel parameters nobody configures

Oracle 19c on Linux: kernel tuning for real performance. Huge Pages, THP, swappiness, I/O scheduler, ulimit — before and after numbers.

AWR, ASH and the 10 minutes that saved a go-live
Oracle

AWR, ASH and the 10 minutes that saved a go-live

Oracle 19c performance tuning with AWR and ASH: finding a hidden full table scan in a stored procedure in 10 minutes, the eve of a go-live.

When a LIKE '%value%' Slows Everything Down: A Real PostgreSQL Optimization Case
PostgreSQL

When a LIKE '%value%' Slows Everything Down: A Real PostgreSQL Optimization Case

PostgreSQL optimization: LIKE '%value%' causes full scan. Using pg_trgm and GIN index to turn a wildcard search into a fast lookup. Real case.

Oracle Partitioning: when 2 billion rows no longer fit in a query
Oracle

Oracle Partitioning: when 2 billion rows no longer fit in a query

Oracle Partitioning on a 2-billion-row table: range, interval, partition pruning, local indexes. From hours to seconds on reporting queries.

EXPLAIN ANALYZE is not enough: how to actually read a PostgreSQL execution plan
PostgreSQL

EXPLAIN ANALYZE is not enough: how to actually read a PostgreSQL execution plan

PostgreSQL EXPLAIN ANALYZE: reading an execution plan, spotting costly nested loops and stale statistics. Real case on 2-million-row table.