Read an EXPLAIN plan and fix the slow part.
Made for you now: slide lessons from basics to production, usually with code and a quiz. See a finished one