query_rewrite
Rewrites SQL queries for optimal performance while preserving correctness. Choose your database and optimization goal to get a rewritten query tailored to speed or memory.
Instructions
Pro: Rewrite SQL queries for optimal performance while preserving correctness
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL query to rewrite | |
| api_key | No | API key for authentication | |
| database | No | Database engine | postgresql |
| optimization_goal | No | Primary optimization goal | balanced |