Production Schema Step 7: Plan and Index

Load a realistic volume of data, at least tens of thousands of rows, generated if necessary. Run EXPLAIN ANALYZE on your five most common queries and record the plan, the estimated rows and the actual rows for each. Where the estimate is badly wrong, run ANALYZE and try again. Add indexes only where a plan justified it, one at a time, re-running the plan after each, and remove any that changed nothing. Record the before and after timings honestly, including the queries you left alone.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 8: Transactions and Concurrency →