Asked about Getting the data out

A query is slow. How do you diagnose it?

An answer that works

EXPLAIN ANALYZE and look at whether it is scanning the table or using an index, and how many rows it reads compared to how many it returns. A sequential scan on a large table where you filter on a column usually means a missing index.

Reading an answer is not being able to give one. The section that teaches this is Getting the data out, 6 hours of SQL & data access.

Learn this properly