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

Tired of spending too much time creating audits for your clients?

Tired of spending too much time creating audits for your clients?

Featured
Gemini Assistant Launches in BigQuery Data Canvas for Enhanced Data Analytics

Gemini Assistant Launches in BigQuery Data Canvas for Enhanced Data Analytics

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 ML Now Supports Llama and Mistral Models for Advanced Text Generation

BigQuery ML Now Supports Llama and Mistral Models for Advanced Text Generation

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 Metadata Caching for SQL Translation

BigQuery Introduces Metadata Caching for SQL Translation

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 Data Transfer Service adds Google Analytics 4 reporting support Trending ️‍πŸ”₯

BigQuery Data Transfer Service adds Google Analytics 4 reporting support

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 Updates BigQuery with New Pipelines, Version Control, and Claude AI Integration

Google Updates BigQuery with New Pipelines, Version Control, and Claude AI Integration

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 Makes Analytics Hub Egress Controls and Data Clean Room Subscriptions Widely Available

BigQuery Makes Analytics Hub Egress Controls and Data Clean Room Subscriptions Widely Available

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 Data Transfer Service adds custom reports support for Google Ads

BigQuery Data Transfer Service adds custom reports support for Google Ads

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

Markifact logo

Markifact

Verified Tool

Verified Tool

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

Verified Tool

Marketing Workflows Powered by AI

Featured
Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

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

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
Databricks logo

Databricks

Generative AI-powered data intelligence platform

Data Engineering
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
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

Get Featured Here

Showcase your tool in this list.

Contact Us