db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Seq to index

Without an index, Postgres reads every page of orders to find one customer's rows. An index on the filter column lets it jump straight to the matching rows.

task

Make SELECT * FROM orders WHERE customer_id = 77 use an index.

hints