Query Analyzer is built into the StarTree Data Portal Query Console. No setup is required — open the console, write your query, and run an analysis.Documentation Index
Fetch the complete documentation index at: https://docs.startree.ai/llms.txt
Use this file to discover all available pages before exploring further.
Running Static Analysis
Static analysis catches issues before your query runs.- Navigate to Data Portal → Query Console
- Write or paste your SQL query
- Select Analyze → Static Analysis
Running Runtime Analysis
Runtime analysis identifies issues after your query runs, using real execution statistics. Each risk flag includes the operator metrics and any correctness alerts relevant to that finding.- Write your SQL query in the Query Console
- Select Analyze → Runtime Analysis
Acting on Recommendations
Index additions — Apply through Data Portal → Table Management. Index changes require a segment reload to take effect on existing data. Query rewrites — Apply directly in the Query Console editor. The recommendation shows a before/after diff. Query hints — Added inline to your SQL using/*+ ... */ syntax. Take effect immediately without schema changes.
For a full breakdown of what each output field and recommendation type means, see Understanding Your Results.
Tips
- Use real queries: Query Analyzer uses column cardinality and table size to produce accurate recommendations. Simplified test queries produce weaker results.
- Static first, runtime second: Static analysis is faster. Use runtime analysis for your most important or problematic queries.
- Read the tradeoffs: Every recommendation includes tradeoffs, for example, an index that helps one query pattern may not justify the storage cost.

