- Categories:
SYSTEM$ESTIMATE_ QUERY_ ACCELERATION¶
For a previously executed query, this function returns a JSON object that specifies if the query is eligible to benefit from the query acceleration service. If the query is eligible for query acceleration, the output includes the estimated query execution time for different query acceleration scale factors.
- See also:
Syntax¶
Parameters¶
query_idQuery ID. Query ID must be for a query executed within the last 14 days; otherwise, the
statusisinvalid.
Output¶
The function returns a JSON object with the properties described below:
eligible | The query can benefit from query acceleration. |
ineligible | The query cannot benefit from query acceleration. |
accelerated | The query has already been accelerated. |
invalid | The query with the specified ID was not found. |
eligible | The query can benefit from query acceleration. | |
ineligible | The query cannot benefit from query acceleration. | |
accelerated | The query has already been accelerated. | |
invalid | The query with the specified ID was not found. | The query with the specified ID was not found. |
invalid | The query with the specified ID was not found. | The query with the specified ID was not found. |
upperLimitScaleFactor | Number of the highest query acceleration scale factor in the
|
In the estimatedQueryTimes object, each name / value pair specifies a query acceleration scale factor and the estimated query execution time at that scale factor.
The following example lists the estimated query execution time for the scale factors 1, 2, 4 and
8:
Usage notes¶
- Estimated query times are for analysis purposes only and are not guaranteed.
- Estimated query times are calculated based on the assumption that the query is serviced by all the compute resources allocated by the query acceleration service based on scale factor.
- Estimated query times do not factor in concurrency.
Examples¶
For example queries, see Identifying queries with the SYSTEM$ESTIMATE_QUERY_ACCELERATION function.