Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Reindexing
Cyber Security

Reindexing

← Back to Glossary
By NHI Mgmt Group Updated November 2, 2026 Domain: Cyber Security

Reindexing is the process of rebuilding one or more database indexes from the underlying data. It is used when indexes become fragmented, inconsistent, or inefficient, and it restores the access path that database engines use to speed lookups, joins, and sorting.

How Reindexing Works

Reindexing rebuilds a database index from the table or collection data it points to, rather than reusing the existing index structure. That gives the database engine a fresh access path for faster lookup, join, and sort operations, especially when the old index has become fragmented or inefficient.

Although the concept sounds maintenance-oriented, it is really about restoring the performance characteristics of an access structure the optimiser depends on. A healthy index can reduce read latency and lock contention; a degraded one can silently make ordinary queries more expensive.

Why Reindexing Becomes Necessary

Indexes can drift away from ideal shape over time because of frequent inserts, updates, deletes, page splits, and other data churn. As that happens, the index may occupy more pages than needed, lose locality, or stop reflecting the most efficient physical layout for the underlying data.

Reindexing is used when the cost of that degradation outweighs the cost of rebuilding. In practice, the trigger is often operational, not just technical: a system may still function, but query plans, I/O usage, and maintenance windows start to show that the index is no longer serving its intended role efficiently.

What Reindexing Changes in Database Behaviour

Reindexing does not change the logical data in the table, but it can change how the database reads it. A rebuilt index typically has a cleaner page structure, better key ordering, and a more predictable path for the optimiser to follow when resolving filters, range scans, ordering, or joins.

That matters because the index is part of the performance contract between application and storage engine. If the access path becomes poor, users often see slower reads, longer transactions, and higher resource consumption even though the application code has not changed.

Operational Trade-offs and Good Practice

Reindexing improves access-path efficiency, but it is not free. It consumes CPU, memory, storage I/O, and maintenance time, and in some engines it may require substantial locking or temporary space while the new structure is built. For that reason, it is usually scheduled, monitored, and aligned to workload patterns rather than run casually.

The practical judgement is to distinguish a performance-maintenance task from a data-fix task. Reindexing helps when the index structure is the problem; it will not correct bad query design, missing statistics, or an underlying data model that continually creates avoidable fragmentation. In mature operations, reindexing sits alongside statistics updates, vacuuming, and index design review as part of routine database hygiene.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.PS-02 — Configuration ManagementReindexing is a database maintenance activity that preserves secure and efficient system configuration.
Recommendation — Schedule reindexing as part of configuration maintenance to keep database performance and integrity stable.
NIST SP 800-53 Rev 5CM-2 — Baseline ConfigurationDatabase index rebuilding is a controlled change to the operational baseline of a system component.
Recommendation — Control and document reindexing as a baseline change to avoid unintended performance regressions.
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareReindexing supports software and database configuration hygiene by restoring efficient index structures.
Recommendation — Include reindexing in secure configuration maintenance for database platforms.
ISO/IEC 27001:2022A.8.9 — Configuration managementReindexing is a controlled database configuration activity that affects system behaviour and performance.
Recommendation — Govern reindexing through configuration management procedures and change approval.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org