Estimates the cost of the original and rewritten version of a query.
GET
request to /cost
with a query
parameter:
Parameter | Type | Required | Description |
---|---|---|---|
query | string | ✅ | Raw SQL query to evaluate |
Field | Type | Description |
---|---|---|
original_cost | number | Cost estimate of the unoptimized query (USD) |
optimized_cost | number | Cost estimate of the rewritten query (USD) |
savings | number | Difference between original and optimized cost |
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
SQL query string
Cost estimate result
The response is of type object
.