← Advanced DBMS learning path
Advanced DBMS · Module 2 of 10

Indexing structures

Speed up queries with B+ trees and hashing.

📖 Key ideas

  1. Indexes map key values to record locations.
  2. B+ trees keep data sorted with all records at leaves; great for range queries.
  3. Hash indexes give fast equality lookups.
  4. Clustered index orders the table data; non-clustered points to data.
  5. Indexes speed reads but slow writes.
💡 Real-life example: A B+ tree index is a multi-level book index: chapter, then page, then line.
B+ treeBalanced tree index with leaf-level data
Hash indexIndex using hashing
Clustered indexDetermines physical row order
Secondary indexAdditional index on other columns