BigQuery Introduces Short Query Optimized Mode for Faster Results

August 16, 2024 at 7:07:12 AM

TL;DR Google's "short query optimized mode" for BigQuery reduces latency for small queries, enhancing performance for dashboards and data exploration. It automatically accelerates eligible queries, returning results inline without creating a job, and includes a cache for repeated queries. Enable it by setting `jobCreationMode` to `JOB_CREATION_OPTIONAL` in `jobs.query`. No `jobReference` is returned, only a `queryId`, improving efficiency for frequent, small-scale queries.

BigQuery Introduces Short Query Optimized Mode for Faster Results

Google has announced a new feature for BigQuery called "short query optimized mode," designed to significantly reduce latency for small queries. This update, currently in preview, aims to enhance performance for common workloads such as dashboards and data exploration.

Key Features of Short Query Optimized Mode

  1. Automatic Optimization: BigQuery automatically determines which queries can be accelerated.
  2. Inline Execution: For eligible SELECT statements, results are returned inline without creating a job.
  3. Lower Latency: Designed to improve overall response time for short queries.
  4. Query Result Cache: Includes a cache to improve performance of repeated queries when data remains unchanged.

How to Enable

  • Set the jobCreationMode field to JOB_CREATION_OPTIONAL in the jobs.query request body.

Important Notes

  • No jobReference is returned for optimized queries; instead, a queryId is provided.
  • Use INFORMATION_SCHEMA.JOBS view to get insights about optimized queries.
  • BigQuery may still create a job if necessary, returning a jobReference in such cases.
  • The useQueryCache parameter (default: true) can be used alongside this feature for potential additional performance gains.

Impact on Developers

  • Developers should check for the presence of jobReference in responses, as it may not always be available.
  • The job_creation_reason field in INFORMATION_SCHEMA.JOBS can help understand why a job was created for a query.

This update represents Google's ongoing efforts to improve BigQuery's performance and efficiency, particularly for scenarios involving frequent, small-scale queries.

How to Run a Short Query Optimized Query

  1. Go to the BigQuery page.
  2. Click SQL QUERY (add_box icon).
  3. In the query editor, enter a valid GoogleSQL query
  4. Click settings More, and then click Short query optimized under Choose query mode. Click CONFIRM to confirm the choice.

Have more questions on this topic? Ask our AI assistant for in-depth insights.

Read more from sources πŸ‘‡

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

Audit your GA4 account in Minutes

Audit your GA4 account in Minutes

Sponsored
GA4 Auditor
GA4 Auditor

Verified Sponsor

Verified Sponsor

GA4 Auditor is a Verified Sponsor. Want to get featured here? Contact us.

Verified Sponsor
BigQuery Introduces AI-Augmented Data Preparation with Gemini

BigQuery Introduces AI-Augmented Data Preparation with Gemini

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery Introduces Fine-Grained DML for Optimized Data Mutations

BigQuery Introduces Fine-Grained DML for Optimized Data Mutations

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Analytics 4 Enhances BigQuery Export with New Session Traffic Source Data

Google Analytics 4 Enhances BigQuery Export with New Session Traffic Source Data

Brais Calvo
Brais Calvo

Top Creator

Top Analytics Creator

Brais Calvo is a Top Analytics Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Analytics Creator
Google Unveils BigQuery Pipe Syntax for Easier SQL Queries Trending ️‍πŸ”₯

Google Unveils BigQuery Pipe Syntax for Easier SQL Queries

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery Introduces Airflow DAG Management Features in Preview

BigQuery Introduces Airflow DAG Management Features in Preview

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery Launches External Datasets Linked to Spanner for Federated Querying

BigQuery Launches External Datasets Linked to Spanner for Federated Querying

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery Enhances Query Performance, Naming Flexibility, and Monitoring with New Features

BigQuery Enhances Query Performance, Naming Flexibility, and Monitoring with New Features

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source

Related Tools

GA4 Auditor logo

GA4 Auditor

Verified Tool

Verified Tool

GA4 Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated GA4 audits with actionable insights

Get Featured Here

Showcase your tool in this list.

Contact Us
GA4 SQL logo

GA4 SQL

Verified Tool

Verified Tool

GA4 SQL is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Generate GA4 BigQuery queries easily

Data Analysis
TapClicks logo

TapClicks

Automated marketing solutions powered by your data

Data Engineering
Stitch logo

Stitch

Automated cloud data pipelines, no coding needed

Data Engineering
Akkio logo

Akkio

AI-powered analytics for agencies

Data Analysis
Databricks logo

Databricks

Generative AI-powered data intelligence platform

Data Engineering
NinjaCat logo

NinjaCat

AI-powered marketing data and analytics platform

Reporting
Funnel logo

Funnel

Aggregate and analyze marketing data seamlessly

Reporting
Fivetran logo

Fivetran

Effortlessly centralize and move data from any source

Data Engineering
Power My Analytics logo

Power My Analytics

Automate and integrate your marketing data

Reporting

Get Featured Here

Showcase your tool in this list.

Contact Us