2026-06-28
· 4 min
·
PostgreSQL
Incremental sort exploits presorted data to avoid expensive full sorts, but cost estimation errors on skewed data can backfire.
0 comments
2026-06-27
· 4 min
·
PostgreSQL
Diagnose spilling hash joins with `enable_hashjoin = off`.
0 comments
2026-06-26
· 5 min
·
PostgreSQL
PostgreSQL 13 made hash aggregation memory-safe by allowing it to spill to disk — but that safety introduced a surprise regression for some queries on upgrade.
0 comments
2026-06-26
· 3 min
·
PostgreSQL , Python , Tools
Learn relational algebra by building expressions that compile to real SQL.
0 comments
2026-06-25
· 3 min
·
PostgreSQL
Disable `enable_gathermerge` to diagnose whether a slow parallel query's bottleneck is the leader-side merge step or something deeper—like worker memory…
0 comments
2026-06-25
· 3 min
·
Python , Tools
Enforce constraints on every assignment, not just at construction.
0 comments
2026-06-24
· 4 min
·
PostgreSQL
Reorder GROUP BY and DISTINCT keys to cut comparison costs and skip sorts—new optimizations in PostgreSQL 17 and 18 that usually stay invisible but…
0 comments
2026-06-24
· 4 min
·
PostgreSQL , Python , Tools
Cygnet is a PostgreSQL ORM for async Python that refuses to hide the SQL.
0 comments
2026-06-23
· 4 min
·
PostgreSQL
Diagnose index scan performance problems by temporarily disabling index scans or bitmap scans and measuring what the planner chooses instead.
0 comments
2026-06-23
· 4 min
·
Python , Tools
Quarantine user uploads before they reach your system.
0 comments