Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Cost optimization Remove topic Cost optimization Clear all 8 posts RSS

2026

2025

2024

Neon

6 tips to optimize storage costs for your Postgres databases

How-to 4 min +40 XP

Six ways to shrink Postgres storage spend: drop unused indexes (found via pg_stat_user_indexes and pg_index), avoid full database copies for dev and staging by using Neon's copy-on-write branching, choose smaller data types like SMALLINT, order columns largest to smallest to cut alignment padding, shorten Neon's history retention window, and tune autovacuum to limit bloat.

The quest for software engineering knowledge.

Look:
Layout: