query
Analyze a SQL query and return optimization suggestions
Run EXPLAIN against the resolved connection — an estimated plan; the query is not executed — parse it, and return ranked recommendations (sequential scans, nested-loop blow-ups, MySQL filesort/temp table, and on SQL Server the optimizer's missing-index statements). Costs 1 quota unit per call. Build tier (or higher) required.
post/v1/query/optimize
Request
- Base URL: https://data.thinair.co
- URL: https://data.thinair.co/v1/query/optimize
- Auth: API key in header x-api-key
Request body
Example request
{
"connection": "fleet",
"sql": "SELECT * FROM drivers WHERE email = 'a@b.co'"
}Response
Plan analysis. data.recommendations lists issues; empty + data.verdict: 'efficient' when nothing actionable was found.
Changes
No recorded changes to this operation across all 1 revision of this API.