# Execution Plans

> What is a query execution plan, and how do you read one to tune a slow query?

Canonical: https://www.internhack.in/learn/interview/database-design/db-query-execution-plan
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What is a query execution plan, and how do you read one to tune a slow query?

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

## Concepts covered

Execution Plan, EXPLAIN ANALYZE, Query Optimizer, Cardinality Estimation, Join Algorithms

Previous: [SELECT \*](https://www.internhack.in/learn/interview/database-design/db-select-star-evil) · Next: [Data Skew](https://www.internhack.in/learn/interview/database-design/db-data-skew-sharding) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [Bulk Inserts](https://www.internhack.in/learn/interview/database-design/db-bulk-insert-performance)
- [Phantom Reads](https://www.internhack.in/learn/interview/database-design/db-phantom-read-explanation)
- [Data Archiving](https://www.internhack.in/learn/interview/database-design/db-data-archiving-strategy)
- [Vector Databases](https://www.internhack.in/learn/interview/database-design/db-vector-database-intro)
- [Lock Escalation](https://www.internhack.in/learn/interview/database-design/db-lock-escalation)
- [Immutable Data](https://www.internhack.in/learn/interview/database-design/db-immutable-data-pattern)

## 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)
