GLOSSARY · A WORD, UNPACKED
index
a specialized data structure that speeds up query retrieval on specific columns at the expense of write performance.
A little more detail
A database index maintains sorted references to table rows so the engine can locate matching records in logarithmic time (O(log N)) rather than scanning every row sequentially (O(N)). Every index requires additional disk space and incurs write latency on INSERT, UPDATE, and DELETE operations to keep the index data structure synchronized.
See it in practice
These lessons pair the idea with examples you can change and run.