StormaticsStormatics

Where 39% of the WAL Came From

A fast-growing SaaS team on Supabase was writing 1.8 TB of WAL a day, and about 39% of it was full-page-image overhead from a five-minute checkpoint default. Here is why that happens, how to check your own system and what to weigh before changing it.
Read More

How to Cut PostgreSQL Cloud Costs

The cheapest way to cut your PostgreSQL cloud bill is to make the database do less work per transaction before you pay for a bigger instance. When we benchmarked this on AWS, tuning alone gave us 4 to 4.7 times more throughput on the same hardware and cut the cost per transaction by 75 to 78%.
Read More

PostgreSQL Generic vs Custom Plans

A prepared query can be fast for one parameter value and slow for another without any change to the SQL. Here is how PostgreSQL chooses between generic and custom plans, and how to investigate when the choice goes wrong.
Read More