An orders table with update headroom
An order lifecycle adds and updates records throughout the day. A 75% fillfactor leaves space for updates and four indexes serve application access paths.
Jump to resultsInputs
Results
Runs in your browser- Heap and indexes now
- 40GB
- 12-month storage
- 76GB
- 36-month storage
- 148GB
The modeled hot working set fits in the supplied RAM budget.
| Current heap | 32 GB |
|---|---|
| Current indexes | 8 GB |
| 12-month rows | 60,800,000 |
| 36-month rows | 118,400,000 |
| Hot working set | 7.2 GB |
| Working set / available RAM | 27.94 % |
| Read IOPS | 400 IOPS |
| Write IOPS | 1,200 IOPS |
| Data page I/O | 1,600 IOPS |
| WAL write throughput | 0.72 MB/s |
| Data and WAL throughput | 13.827 MB/s |
| WAL generated per day | 62.208 GB |
What to try
The estimate rises from 40 GB to 76 GB in a year. Vary fillfactor and bloat separately to understand reserved page space versus historical dead-space growth.
How the estimate works
Heap bytes ≈ rows × (payload + tuple overhead) ÷ fillfactor × (1 + bloat)
The heap estimate includes row overhead, free space from fillfactor, and extra bloat. Index size uses an average entry size, a B-tree overhead factor, and the same bloat factor. Use measured relation sizes to calibrate these estimates when available.
A forecast month is 30 days. When a retention period and a positive arrival rate are set, future rows are capped at arrivals within that retention horizon. The current size uses the supplied row count. Forecast points assume pruning is effective by that point.
Read IOPS comes from uncached page touches. Page I/O assumes 8 KiB pages and a steady write rate. WAL bandwidth uses bytes generated per write. Data page throughput and WAL throughput are added. A WAL segment retention policy, TOAST, maintenance spikes, and replica amplification need separate sizing.
Frequently asked questions
Should ordinary fillfactor space be included in orders-table bloat?
Keep the terms separate. Fillfactor accounts for intentional page space. The extra bloat input covers wasted allocation beyond the baseline.
Does a lower orders-table fillfactor guarantee HOT updates?
It makes space available on the same page. A HOT update also depends on which indexed columns change and the row’s placement.