Measure one slow journey
Record request p95, query count, query time, and the data shape for one journey. Use the same parameters and warmed dataset when you compare candidates.
Read the database plan
On a safe copy, use EXPLAIN ANALYZE to look for rows read, loops, temporary work and sorting. Compare estimates with actual rows before proposing an index.
Change one variable
Compare a composite index or cursor pagination with the original under the same conditions. Validate ordering, ties, page continuity and write cost.
Keep a budget
Store the fixture and workload alongside the result. Define the rollback threshold and repeat the check after a major schema, workload or runtime change.
Download MySQL dataset and benchmark runner · Download measured results
Query decision tool
Choose how results are ordered and which navigation the product requires. Verify the resulting plan on representative data.