FOMO Daily
Feed
Neon·

The Postgres mistakes we all still make

DatabasesPostgresSQLBest Practices

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
Read the original post Sign in to mark as read or skip