SQL Performance Analyzer
Find performance anti-patterns in a SQL query and get ranked fixes
SQL query
Examples
A full-scan LIKE
SELECT * FROM users WHERE name LIKE '%ada%'Score reduced — SELECT * (medium) and leading-wildcard LIKE (high) flagged.A leading wildcard defeats indexes and forces a full table scan; SELECT * fetches unneeded columns too.
A Cartesian product
SELECT * FROM users, ordersCritical — comma join / cross join without a join condition.A comma join with no ON/WHERE pairs every row with every row. Use an explicit JOIN … ON.
About this tool
Most slow queries suffer from a small number of recurring mistakes, and you do not need a live database to spot them. This analyzer inspects SQL for the patterns that reliably hurt performance: SELECT *, leading-wildcard LIKE that defeats indexes, missing WHERE clauses, comma-style cross joins, NOT IN with its NULL pitfalls, functions applied to columns, ORDER BY without LIMIT, and UNION where UNION ALL would do.
Each finding is ranked by severity with a concrete suggestion, and the query gets an overall 0–100 performance score. The analysis is heuristic and schema-agnostic — it points at likely problems fast, but real tuning still depends on indexes, row counts, and the actual execution plan.
How to use this tool
Paste the query
Enter the SQL statement you want to review.
Read the score
The 0–100 score and grade summarize how many anti-patterns are present.
Work the findings
Apply the high-severity suggestions first for the biggest performance gain.
Verify with a plan
Confirm each change with EXPLAIN and real data volumes.
Common mistakes
Mistake:Using leading-wildcard LIKE.
Fix:LIKE '%term' cannot use a normal index. Use full-text search or a prefix-anchored pattern.
Mistake:SELECT * for convenience.
Fix:List only needed columns to cut I/O and keep the query stable when the schema changes.
Frequently asked questions
Does this replace EXPLAIN?
No. It is a schema-agnostic heuristic that flags common anti-patterns quickly. Confirm every change with EXPLAIN and your real data volume.
Why was my query scored poorly?
Each penalty comes from a specific finding (e.g. SELECT *, a leading-wildcard LIKE, or a missing WHERE). Read the findings list to see exactly what lowered the score.
Is my query uploaded?
No. Analysis happens locally in your browser.
Related guides
References & standards
Related tools
Base64 Toolbox
Professional Base64 workspace for text, files and images with Base64URL, MIME, Data URI, strict validation, image preview and ready-to-use snippets.
C# to VB.NET Converter
Convert a subset of C# — classes, methods, variables, loops — into VB.NET
CSV Data Viewer
Paste CSV and browse rows in a sortable table with delimiter detection
CSV to Chart
Paste or upload CSV data and generate bar, line, pie, or doughnut charts. Export as PNG.
CSV to JSON Converter
Paste CSV data and convert it to pretty-printed JSON instantly — supports custom delimiters, header row toggling, and value trimming.
CSV to Markdown Converter
Convert CSV to a Markdown table and Markdown tables back to CSV