I'd use EXPLAIN in MySQL to analyze a query. It provides insight into how the database executes the query, including whether indexes are being utilized.
Example:
EXPLAIN SELECT * FROM users WHERE email = '[email protected]';
The output will show if an index is being used for the query then I will look for the key column in the result; if it’s populated with the name of an index, then the query is indexed properly.