Google launched Short Query Optimized Mode for BigQuery
Lower Latency for Small Queries
With the new short query optimized mode for you can gain lower latency for small queries. BigQuery automatically determines which queries may be accelerated while other queries continue to run like before[1].
Short query optimized mode is designed to reduce the latency of short queries, which are common in tasks like dashboards or data exploration. This mode processes the query and returns the results directly for SELECT
statements, without creating a job unless BigQuery determines it’s necessary[1][2].
To enable short query optimized mode, set the
jobCreationMode
field of the QueryRequest instance toJOB_CREATION_OPTIONAL
in thejobs.query
request body. When the value of this field is set toJOB_CREATION_OPTIONAL
, BigQuery determines if the query can use the new short query optimized mode. If so, BigQuery executes the query and returns all results in therows
field of the response. Since a job isn't created for this query, BigQuery doesn't return ajobReference
in the response body…