CoreTrail

Performance

Read plans, choose indexes, and reduce unnecessary work.

Chapter overviewCross-engine concepts3 min read
On this page

Investigate the work behind the result

Performance starts with a correct result and a measurable symptom. This chapter moves from plans and access paths to reproducible experiments, then contrasts transactional engines with analytical warehouses.

Suggested route: Follow workflow → plans → indexes → statistics → joins and predicates. Run the index and partition labs before jumping to engine-specific guidance.

By the end: Form a hypothesis from a plan, verify unchanged results, and measure a change without claiming universal speedups.

Decision reference

Symptom First lesson
Unclear source of slowness When and where to optimize
Much input, tiny output Plans and access paths
Estimates differ from reality Statistics and skew
Large joins or spills Joins, sorting, and memory
Broad time scans Predicates and partition pruning
Warehouse scan or shuffle cost Warehouse performance

In this chapter

How to study

Use the suggested route above. For each lesson, explain the decision in your own words, test its example, and identify a situation where a different approach would be needed.

Type a concept, keyword, or function.