See whether the optimizer chooses your index.
Section: Verify usage
Explain a query
sql
sql
EXPLAIN SELECT id, total_amount
FROM orders
WHERE status = 'paid'
ORDER BY created_at DESC
LIMIT 50;Explanation
Look at the chosen key, access method, estimated rows, and extra information.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Verify usage
Refresh table statistics
Help the optimizer make better choices after major data changes.
Create an invisible index
Test an index without making it visible to the optimizer by default.