SMRTR ProgrammingMay 18, 2025Hacker News

The fastest Postgres inserts

SMRTR summary

A series of optimizations dramatically improved Postgres write performance, from 2,000 writes/second to over 90,000 writes/second. Key strategies included reducing network latency, using connection pooling, optimizing connection counts, implementing batched inserts, and utilizing the COPY command. The study also explored the trade-offs between throughput and latency, finding that a batch size of 25 rows nearly maximized throughput while maintaining reasonable latency. These findings demonstrate that Postgres can scale significantly with proper configuration and application-side optimizations.

SMRTR provides this summary for quick context. The original article belongs to Hacker News.

Read the original article
SMRTR Programming

Get the next batch of curated stories in your inbox.

This archive is built from SMRTR newsletter stories. Subscribe for hand-picked stories without the extra noise.

Related Stories

Browse Programming
ProgrammingAug 25, 2026

The End of Programming

AI rewrote Bun's entire JavaScript runtime—one million lines of code in eleven days—for ~$165,000, with minimal human involvement. As AI-generated code surges exponentially,...