home Home build Tools bug_report Errors menu_book Guides lightbulb Tips smart_toy Prompts extension Extensions folder_open Resources info About
search
help

Paste a SOQL query and click "Analyze Query" to see results

What This Tool Checks

error

Performance Issues

Detects non-selective queries that might hit production performance limits.

warning

Index Usage

Analyzes whether your WHERE clauses are using indexed fields effectively.

info

Query Complexity

Estimates complexity based on relationships, joins, and aggregations.

done

Optimization Tips

Provides actionable recommendations to improve query performance.

Query Optimization Tips

lightbulb

Use indexed fields in WHERE clauses: Standard indexed fields include Id, Name, Email. Always filter on these when possible for better selectivity.

Avoid wildcards at the start: LIKE '%value' cannot use indexes. Use LIKE 'value%' instead for selective queries.

Limit SOQL queries in loops: This is a common cause of governor limit errors. Use SOQL queries to fetch data first, then iterate.

Use LIMIT clause: Always specify LIMIT, especially in loops and batch operations to control data volume.