Tabellab
IT & Tech Intermediate

Database Capacity Planning: Storage Growth, Index Size, IOPS & Query Cost

Size a production database the way DBAs do it: bytes per row and table size, B-tree index pages with fill factor, compound storage growth to the disk alert, IOPS and throughput from the query mix, cache hit ratio and buffer pool, replicas and backup retention, connection pools with Little's law and provisioned vs serverless cost, in 8 hands-on labs with illustrative numbers.

8 lessons 8 labs 2.6 h Certificate

The first lesson is free โ€” no account needed.

About this course

A database capacity planning course that sizes the production database of one fictional parcel-tracking SaaS, Parcelwise, in a spreadsheet, for DBAs, backend and platform engineers, SREs and computer science students. You estimate bytes per row from the column types and the size of a 48-million-row table on 8 KB pages, size four B-tree indexes with a 90% fill factor, forecast compound storage growth until the 80% disk alert fires, turn the query mix into read and write IOPS with write amplification, size the buffer pool from the cache hit ratio and the working set, add up replicas, backups and WAL for a 30-day recovery window, size connection pools with Little's law, and compare provisioned instances with serverless cost in a chart. Illustrative numbers, with no affiliation with any database or cloud vendor. The first lab is free.

Lessons

  1. Row Size from Column Types & Table Size: Bytes per Row, Rows per Page, GiBLab18 minFree
  2. Index Size & Overhead: B-tree Leaf Pages, Fill Factor & Indexes vs TableLab20 min Pro
  3. Database Storage Forecast: Compound Monthly Growth, Overhead & Months Until the Disk Alert (Chart)Lab20 min Pro
  4. IOPS & Throughput from the Query Mix: Reads, Amplified Writes & the PeakLab18 min Pro
  5. Cache Hit Ratio & Buffer Pool Sizing: Working Set, Headroom & the RAM to BuyLab20 min Pro
  6. Replicas, Backups & Retention: The Real Storage Footprint of One DatabaseLab18 min Pro
  7. Connection Pool Sizing with Little's Law: Busy Connections, Pool per Instance & LimitsLab20 min Pro
  8. Cost Comparison: Instance Sizes vs Serverless per Month (with a Chart)Lab20 min Pro