Suggest SQL indexes from filters, joins, sort keys, and selectivity.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Query predicates, join keys, ordering, and selectivity hints are compared with existing indexes to suggest single or composite access paths. The suggestion does not run EXPLAIN or create an index.
SELECT * FROM products WHERE category = 'Electronics' AND price > 100 ORDER BY rating DESC
-- Index Suggestions -- Analyzed query: SELECT * FROM products WHERE category = 'Electronics' AND price > 100 ORDER BY r... -- Suggestion 1: Columns used in WHERE clause conditions -- Table: products, Columns: category, price CREATE INDEX idx_products_category_price ON products (category, price); -- Suggestion 2: Columns used in ORDER BY clause -- Table: products, Columns: rating CREATE INDEX idx_products_rating ON products (rating);
Endpoint tuning, migration reviews, and composite-query analysis suggest indexes.