# Indexing Deep Dive

> What is the difference between a clustered and a non-clustered index? How does each affect query performance?

Canonical: https://www.internhack.in/learn/interview/database-design/db-indexing-types
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is the difference between a clustered and a non-clustered index? How does each affect query performance?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Clustered Index, Non-clustered Index, B+Tree, Key Lookup, Covering Index

Previous: [ACID Properties](https://www.internhack.in/learn/interview/database-design/db-acid-properties) · Next: [CAP Theorem](https://www.internhack.in/learn/interview/database-design/db-nosql-cap-theorem) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [SQL vs. NoSQL](https://www.internhack.in/learn/interview/database-design/db-sql-vs-nosql-choice)
- [Isolation Levels](https://www.internhack.in/learn/interview/database-design/db-transaction-isolation-levels)
- [Database Sharding](https://www.internhack.in/learn/interview/database-design/db-sharding-patterns)
- [Replication Strategies](https://www.internhack.in/learn/interview/database-design/db-replication-master-slave)
- [Referential Integrity](https://www.internhack.in/learn/interview/database-design/db-foreign-key-constraints)
- [Composite Keys](https://www.internhack.in/learn/interview/database-design/db-composite-primary-key)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Database Design](https://www.internhack.in/learn/interview/database-design)
