Boss: three slow queries
Three queries are slow: the orders of customer 77 by date, the paid orders of customer 77, and the order_items of product 5. Two indexes fix all three.
task
Create two indexes so none of the three queries uses a Seq Scan.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Three queries are slow: the orders of customer 77 by date, the paid orders of customer 77, and the order_items of product 5. Two indexes fix all three.
Create two indexes so none of the three queries uses a Seq Scan.