Rock SQL optimizer
Optimize a slow Rock SQL query without breaking its semantics.
Need a quick read on Rock SQL optimizer?
Skim the gist, what it's good for, a real prompt to try, and the gotchas — all distilled from SKILL.md. Cached after the first run.
About this skill
--- name: sql-query-optimizer version: 1.0.0 description: Optimize a slow Rock SQL query without breaking its semantics. triggers: - optimize this rock sql query - why is this query slow runtimes: - code - cowork tags: - rock - sql - performance ---
# Rock SQL optimizer
Explains a query's plan in plain English, identifies the expensive bits (usually an implicit scan on `AttributeValue`), and rewrites it if it can do so without changing results. Pairs well with the new `PersonAliasHistorical` indexes.
## When to use
- "optimize this rock sql query" - "why is this query slow"
## Notes
This skill is published to the Triumph Skills Marketplace. Report issues or request features directly from the skill's page.