IT lexicon › Database › Fillfactor

Fillfactor

Database På svenska → Updated: 2026-07-30

A setting that controls how full an index/data page is packed at build, leaving the rest as free space for future inserts/updates. Fill factor 90 = fill to 90%, leave 10% air. Helps against "page splits" and fragmentation.

Problem: if a page is 100% full and a new row needs to go in the middle (or a row grows on UPDATE), the database must split the page ("page split") → expensive and fragmenting. By leaving air (a lower fill factor) updates fit on the same page. Trade-off: lower fill factor = fewer splits but more disk space and more pages to read (worse cache utilization). Rule of thumb: read-heavy/static tables → high fill factor (pack tightly); write-heavy with inserts in the middle → lower. In PostgreSQL it ties into HOT updates (free space on the page lets an UPDATE avoid touching indexes). SQL Server sets it per index. A classic knob for tuning write performance.

← Back to the lexicon