Drops and recreates an index to clear fragmentation. Columnstore indexes also have every delta row pushed into compressed rowgroups during this operation.
Also called ALTER INDEX ... REBUILD.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains REBUILD in context, with comparison tables and the common traps.
Terms in this definition
- Index
Speeds up queries that filter on certain columns by keeping those columns sorted, with pointers back to each row; the price is more storage and slower writes.
Related terms
- Default Domain Policy
Linked at the domain's root, this GPO holds lockout, password and other account settings for the whole domain; dcgpofix can rebuild it.
- Erasure coding
Saves capacity by using parity in place of additional data copies; if a disk fails, the parity is used to rebuild the data. RF2 requires a minimum of four nodes, blocks or racks, and RF3 requires six.
- Identity column
Assigns a unique
BIGINTto every row inserted into a Delta table, though not always in an unbroken sequence; it is declared asGENERATED ALWAYS AS IDENTITYorGENERATED BY DEFAULT AS IDENTITY. Concurrent writes are disabled and a rebuild can change the numbers, so it suits append-only tables that no full refresh will ever touch. - Index transformation
The online rebuild Cosmos DB performs in place once an indexing policy is modified, drawing on spare RUs and giving way to CRUD operations.
- Object Repair Timer
By default vSAN holds off for 60 minutes (an advanced option) before rebuilding components that are absent following a host failure or maintenance-mode entry. Degraded components skip the wait and rebuild immediately.
- Optimal refresh
Turned on by default for materialized lake views, this setting chooses on every run between skipping, an incremental refresh and a full one. Source tables need Delta change data feed for incremental refresh to happen, and disabling the setting makes each run a full rebuild.
- Resilient capacity
How much cluster storage can be used while still leaving room to rebuild after a failure. Exceeding it only raises a warning unless rebuild capacity reservation is in force.
- Strip size
How much data and parity make up one erasure coding strip, written like (4,1) or (4,2). The figure comes from AOS based on your cluster; wider strips bring greater savings at a higher rebuild cost.