Neon·
The Postgres mistakes we all still make
TL;DR
Common Postgres habits that seem harmless locally can cause connection exhaustion, table bloat, and slow writes at scale. The post recommends reusing connections, storing growing histories in separate tables instead of JSONB arrays, keeping external API calls outside transactions, dropping old partitions instead of bulk-deleting rows, and removing unused indexes. These changes reduce wasted database work; in the author’s laptop benchmark, persistent connections delivered roughly 150 times the throughput of reconnecting for every transaction.
Relevant links
Sign in to save links