Skip to main content
Beta feature — Query Analyzer is disabled by default and available on demand. Contact your StarTree account team to have it enabled for your environment.
This page is a reference for everything Query Analyzer returns. Use it to understand what each field means, what triggered a specific finding, and what the different recommendation and risk flag categories represent.

Output Sections

Risk Flags

The main output section. Each risk flag represents one detected issue and bundles everything related to that issue in one place: what was found, why it matters, the measured evidence behind it, and — for runtime analysis — the operator metrics and any correctness concerns. Only HIGH and MEDIUM confidence findings are shown. Low-confidence results are suppressed to keep output focused.
When a risk flag carries a correctness alert, address it before acting on performance recommendations. A correctness issue — such as the group limit being reached — means query results may already be incomplete, which affects how you should interpret the rest of the analysis.

Recommendations

Ranked, actionable suggestions. Each recommendation includes: Recommendations are ranked by expected impact first, then confidence. A query rewrite that eliminates an expensive operation ranks above an index addition at the same impact level.

Risk Flag Types

Risk flags are detected during both static and runtime analysis. There are two categories.

Index Gaps

These flags indicate that a column used in a filter, join, or aggregation is missing an index that would significantly speed up the query.

Query Pattern Issues

These flags indicate structural patterns in the SQL or query plan that are likely to cause poor performance.

Filter Propagation Issues

These flags identify missed opportunities to reduce data early by pushing filters across the query plan.

Diagnostic Values

These values may appear in the type field of an API response but are not user-facing risk flags. They are used internally to drive post-processing logic and short-circuit gates.

Operator Types

Operator types appear within risk flags during runtime analysis. The API value column shows the exact string returned in the operator field of a Finding object.

Evidence Types

Evidence is embedded within each risk flag to show what triggered it. The type tells you where the finding came from.

Found in Both Modes

Found During Static Analysis Only

Found During Runtime Analysis Only


Recommendation Types

Recommendations appear in both static and runtime analysis.

Query Changes

Index Additions

Configuration Changes

Sentinel