Skip to content

Destination bigquery: RC6: smarter standard inserts implementation to avoid rate limit - #60859

Merged
Francis Genet (frifriSF59) merged 3 commits into
masterfrom
edgao/bigquery_standard_insert_rate_limit
May 22, 2025
Merged

Francis Genet (frifriSF59) merged 3 commits into
masterfrom
edgao/bigquery_standard_insert_rate_limit

Conversation

@edgao

@edgao Edward Gao (edgao) commented May 22, 2025 •

Copy link
Copy Markdown
Contributor

standard inserts needs to juggle a few restrictions:

  • TableDataWriteChannel holds a 15MB buffer, so is expensive to hold in memory (this is configurable, but at the cost of performance)
  • bigquery has a daily limit on how many times you can open+close a TableDataWriteChannel per table

the initial implementation solved the first problem by buffering in a BAOS and flushing to a writechannel when that BAOS hit 15MB - which obviously causes rate limit problems. This implementation keeps the BAOS, but once that BAOS hits 15MB, we switch to writing to a writechannel (so we won't close the channel until we hit the target batch size of 200MB). Which hopefully gets us the best of both worlds.

Important

Auto-merge enabled.

This PR is set to merge automatically when all requirements are met.

@vercel

vercel Bot commented May 22, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2025 5:55pm

@github-actions

github-actions Bot commented May 22, 2025 •

Copy link
Copy Markdown
Contributor

destination-bigquery Connector Test Results

178 tests   156 ✅  50m 56s ⏱️
 11 suites   22 💤
 11 files      0 ❌

Results for commit 798f01f.

♻️ This comment has been updated with latest results.

@frifriSF59
Francis Genet (frifriSF59) enabled auto-merge (squash) May 22, 2025 17:57
@frifriSF59 Francis Genet (frifriSF59) changed the title Destination bigquery: RC5: smarter standard inserts implementation to avoid rate limit Destination bigquery: RC6: smarter standard inserts implementation to avoid rate limit May 22, 2025
@frifriSF59
Francis Genet (frifriSF59) merged commit f11a7e0 into master May 22, 2025
@frifriSF59
Francis Genet (frifriSF59) deleted the edgao/bigquery_standard_insert_rate_limit branch May 22, 2025 18:06

This branch was successfully deployed

1 active deployment
Preview — 798f01f8 Deployed May 22, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants