Estimate costs for a connection

Version 4.0.25.2 (latest)

Connection cost estimating

Assign a sql statement to the body of the request. e.g., for Ruby, {sql: 'select * from users'}

Note: If the connection's dialect has no support for cost estimates, an error will be returned

Request

POST /connections/{connection_name}/cost_estimate
Datatype
Description
Request
HTTP Request
path
HTTP Path
connection_name
string
Name of connection
body
HTTP Body
body
SQL statement to estimate
sql
string
SQL statement to estimate
query
HTTP Query
fields
string
Requested fields.

Response

Datatype
Description
(object)
cost
integer
Cost of SQL statement
cache_hit
boolean
Does the result come from the cache?
cost_unit
string
Cost measurement size
message
string
Human-friendly message
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
field
string
Field with error
code
string
Error code
message
string
Error info message
documentation_url
string
Documentation link
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link