A database query being “fast” doesn't mean it's efficient.
If your query returns 10 rows but scans 10 million, you got lucky.
Indexes, query plans, cardinality, and the amount of data touched matter more than how quickly it happened on your laptop.
Production exposes the difference.