Explore Library
Quiz

Indexing Join and Aggregation Columns

Learn which columns benefit most from indexes when joining and grouping large tables.

You run: SELECT c.region, COUNT(*) FROM orders o JOIN customers c ON o.customer_id = c.id GROUP BY c.region; The query is slow on millions of rows. Which index is most likely to improve the JOIN performance?