liveBook · Manning

Autogrowth

As explained in 100 SQL Server Mistakes and How to Avoid Them

Autogrowth is SQL Server's automatic expansion of a database file when the file requires additional space.

Mistake: relying on autogrowth to manage database size. SQL Server grows files automatically when space runs out, but default 64 MB increments can turn ordinary growth into repeated delays, blocking, and resource consumption. section 9.3

MagicChoc MarketingArchive

The database grows about 5 GB daily during ETL. With 64 MB growth increments, data and log files repeatedly expand; growth consumes disk and processor resources, blocks transactions writing to the log, and may fragment files. Plan capacity instead of treating autogrowth as the sizing strategy. section 9.3

Use these safer rules:

  • Pre-size files and choose growth increments appropriate to expected growth rather than accepting the defaults. section 9.3
  • Give log files especially careful sizing: growth can block concurrent log writers and create transaction-log fragmentation through excessive VLFs. section 9.12
  • Monitor growth patterns and capacity so new storage is available before an outage or unplanned expenditure. section 9.12
Listing 9.9 Changing the autogrowth increment
ALTER DATABASE MarketingArchive 
   MODIFY FILE ( NAME = 'MarketingArchive', FILEGROWTH = 5GB ) ;

Apply a larger planned increment to the MarketingArchive data file with ALTER DATABASE rather than repeated 64 MB expansions. section 9.3

How 100 SQL Server Mistakes and How to Avoid Them covers it

How deep it goes
Explains defaults, growth overhead, blocking, zeroing, disk fragmentation, and VLF effects, then stops short of detailed instant-file-initialization treatment.
Examples
Uses a 5 GB-per-day ETL workload, default 64 MB increments, and an ALTER DATABASE command setting 5 GB growth.
What it assumes
Assumes basic familiarity with SQL Server databases, data files, log files, and ALTER DATABASE syntax.
What you can do after
Operate/configure SQL Server files with planned growth increments and recognize when autogrowth is causing blocking or fragmentation.
How it connects
Connects autogrowth with transaction logs, VLFs, disk fragmentation, blocking, instant file initialization, and capacity planning.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of 100 SQL Server Mistakes and How to Avoid Them. The section links point to the parts of the book it draws on.