Saturday, June 28, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Answering billions of reporting queries each day with low latency – Google Research Blog

October 20, 2023
in AI Technology
Reading Time: 2 mins read
0 0
A A
0
Share on FacebookShare on Twitter



Posted by Jagan Sankaranarayanan, Senior Staff Software Engineer, and Indrajit Roy, Head of Napa Product, Google

Google Ads infrastructure relies on an internal data warehouse called Napa. Napa stores tables containing records of ads performance, which are associated with specific customers and campaign identifiers. These tables are used to power critical dashboards that measure campaign performance for advertising clients. The challenge lies in efficiently retrieving the data for reporting queries, as the data is skewed and queries have strict latency requirements.

In our paper “Progressive Partitioning for Parallelized Query Execution in Napa”, presented at VLDB 2023, we describe how Napa addresses this challenge. We introduce a progressive query partitioning algorithm that can parallelize query execution effectively, even in the presence of complex data skews. This algorithm ensures that reporting queries are answered within a few milliseconds while meeting strict latency targets. With Napa, Google Ads infrastructure is able to serve billions of queries every day.

One of the main challenges in query processing is determining how to parallelize the query effectively. Napa’s parallelization technique divides the query into even sections that are distributed across available machines, reducing query latency. However, estimating the number of records associated with a specific key is not perfect, as reviewing all records would require the same effort as answering the query. Unequal distribution of work among machines leads to runtime skews and poor performance. Each machine also needs sufficient work to avoid underutilized infrastructure. Additionally, parallelization must meet stringent latency requirements for each query.

To address these challenges, we have developed a progressive partitioning algorithm. This algorithm minimizes the amount of metadata needed and focuses on efficiently partitioning the data based on the skewed part of the key space. It works within the allotted time, ensuring that partitioning takes no longer than tens of milliseconds. The algorithm determines the best possible partitioning that considers query latency expectations.

In managing the data deluge, Napa uses log-structured merge forests (LSM tree) to organize table updates. LSM allows us to update tables separately from query serving, ensuring atomic updates once the next batch of ingest (delta) is fully prepared for querying.

The data partitioning problem in Napa involves a massively large table represented as an LSM tree. We use a tree-traversal algorithm to quickly split the trees into two equal parts. To avoid visiting all nodes of the tree, we introduce the concept of “good enough” partitioning. The algorithm reduces the error estimate of partitioning and stops when the two pieces are approximately equal.

Our progressive partitioning algorithm makes a series of moves to reduce the error estimate and cuts the trees into more or less equal pieces. The algorithm is guided by statistics stored with each node of the tree. Progressive partitioning is effective for our use-case as it ensures that the longer the algorithm runs, the more equal the pieces become. It also allows for good partitioning even if the algorithm is stopped at any point.

In conclusion, Napa’s progressive partitioning algorithm optimizes database queries efficiently, enabling Google Ads to serve client reporting queries billions of times each day.



Source link

Tags: AnsweringbillionsBlogDayGooglelatencyQueriesreportingResearch
Previous Post

Rotate Your SSL/TLS Certificates Now – Amazon RDS and Amazon Aurora Expire in 2024

Next Post

5 Tips For Adding Another Room To Your Home

Related Posts

How insurance companies can use synthetic data to fight bias
AI Technology

How insurance companies can use synthetic data to fight bias

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset
AI Technology

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper
AI Technology

Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper

June 9, 2024
How Game Theory Can Make AI More Reliable
AI Technology

How Game Theory Can Make AI More Reliable

June 9, 2024
Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs
AI Technology

Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs

June 9, 2024
Deciphering Doubt: Navigating Uncertainty in LLM Responses
AI Technology

Deciphering Doubt: Navigating Uncertainty in LLM Responses

June 9, 2024
Next Post
5 Tips For Adding Another Room To Your Home

5 Tips For Adding Another Room To Your Home

Using Markdown in Laravel – Honeybadger Developer Blog

Using Markdown in Laravel - Honeybadger Developer Blog

LivePose: Online 3D Reconstruction from Monocular Video with Dynamic Camera Poses

LivePose: Online 3D Reconstruction from Monocular Video with Dynamic Camera Poses

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
How ‘Chain of Thought’ Makes Transformers Smarter

How ‘Chain of Thought’ Makes Transformers Smarter

May 13, 2024
Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

October 2, 2023
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

October 30, 2023
Managing PDFs in Node.js with pdf-lib

Managing PDFs in Node.js with pdf-lib

November 16, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In