SkillSprout
Chapter 15

Indexes

An index is the shortcut that lets a database find one row among millions without reading the whole table. You will learn how indexes work, which kinds exist, and what they cost.

1What Is an Index? (B-Tree)
Beginner
4 min
2Composite and Covering Indexes, and the Write Cost
Intermediate
4 min
3LSM-Trees, Hash Indexes and Full-Text Search
Intermediate
4 min

Chapter quiz

Indexes · 5 questions

  1. 1.What does a full table scan do?

  2. 2.An index on (user_id, created_at) will NOT help which query?

  3. 3.What is the main cost of adding more indexes?

  4. 4.Which structure is best for a very write-heavy workload?

  5. 5.Which index powers searching for words inside text?

0 of 5 answered