~/talk

Should We Defragment Indexes?

Talkat SQLBits 2023 · 2023-03-14..03-18· [databases]
links:none on file
slides:none on file

Argues that external fragmentation can make defragmenting counterproductive: rebuilding or reordering pages often concentrates them onto a single capacity device or controller in a VM/hypervisor storage layout, reducing parallel I/O and hurting throughput; contrasts that with fixing internal fragmentation (rebuilds reduce page count and can help the optimizer). Uses simple card-demo and storage-layout reasoning rather than heavy tooling, recommends benchmarking index maintenance in each environment (Azure SQL DB/Managed Instance, VMs) and favors cautious, measured reorgs over blind rebuild schedules.

AI-written summary · about

  1. 0:00Introduction to maintenance
  2. 1:43Internal vs external fragmentation
  3. 3:32Reorgs vs rebuilds
  4. 5:26Impact on storage architecture
  5. 8:56The controller analogy
  6. 9:44Conclusion of main talk
  7. 10:47Q&A session
  8. 19:04Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.