Join Algorithms: Nested Loop, Hash, Sort-Merge
This generated surface maps a learner-facing curriculum unit to its canonical source routes.
Curriculum surface
- Open learner-facing unit
- Curriculum path:
content/curriculum/architecture/semester-06-databases-distributed/module-02-storage-engines-indexing/concepts/cluster-04-query-execution-and-planning/11-join-algorithms-nested-loop-hash-sort-merge-primary.md - App:
architecture - Semester:
semester-06-databases-distributed - Module:
module-02-storage-engines-indexing - Unit kind:
concept - Curation level:
module_curated
Learning objectives
- Explain Join Algorithms: Nested Loop, Hash, Sort-Merge in terms of physical layout, access paths, and performance tradeoffs instead of memorizing structure names.
- Relate Join Algorithms: Nested Loop, Hash, Sort-Merge to the actual cost of reads, writes, buffering, and maintenance work inside a storage engine.
- Use
database-system-conceptsto connect the learner explanation to B-trees, LSM behavior, query execution, and recovery mechanics.
Prerequisites
- Comfort with the relational model, SQL querying, and basic database terminology from module 01.
Source books
database-system-concepts
Source routes
Database System Concepts
- /books/database-system-concepts via
Database System Concepts: 15.2 Measures of Query Cost (Part 1),Database System Concepts: 15.4 Sorting,Database System Concepts: 15.5 Join Operation (Part 1),Database System Concepts: 15.5 Join Operation (Part 2),Database System Concepts: 15.5 Join Operation (Part 4)
Supporting curriculum routes
No supporting curriculum routes linked yet.
External enrichment
- PostgreSQL Documentation: Indexes (
official_docs_companion) - Grounds index and execution-planning ideas in a real production database that learners can actually inspect. - PostgreSQL Documentation: Using EXPLAIN (
official_docs_companion) - Useful when the learner needs to connect storage-engine ideas to actual execution plans and cost reasoning.
AI companion modes
- Explain simply
- Socratic tutor
- Challenge my understanding
- Diagnose my confusion
- Connect forward / backward
Source-of-truth note
This teaching unit is learner-facing guidance. Its canonical source backbone is the referenced book database-system-concepts, and outside material should only clarify or strengthen that backbone.