- 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¶
SYSTEM$ESTIMATE_QUERY_ACCELERATION( '<query_id>' )
Parameters¶
query_id
Query ID. Query ID must be for a query executed within the last 14 days; otherwise, the
status
isinvalid
.
Output¶
The function returns a JSON object with the properties described below:
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
|
Object that contains the estimated query execution time in seconds for different query acceleration scale factors. If the
|
||||||||
|
Execution time of the original query in seconds. |
||||||||
|
Query ID. |
||||||||
|
One of the following values that indicates whether or not the query is eligible to benefit from the query acceleration service:
|
||||||||
|
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
:
...
"estimatedQueryTimes" : {
"1" : 171,
"2": 152,
"4": 133,
"8": 120
}
...
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.