Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use Storage Read API for faster data fetching #1368

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

alvarowolfx
Copy link
Contributor

Depends on googleapis/nodejs-bigquery-storage#431

Some early results:

  1. SELECT repository_url as url, repository_owner as owner, repository_forks as forks FROM `bigquery-public-data.samples.github_timeline` where repository_url is not null LIMIT 300000
  • fetchGetQueryResultsI: 31.135s 🔴
  • fetchStorageAPI: 20.033s ⬆️ 36% speedup
  1. SELECT repository_url as url, repository_owner as owner, repository_forks as forks FROM `bigquery-public-data.samples.github_timeline` where repository_url is not null LIMIT 1000000
  • fetchGetQueryResultsI: 1:32.622 (m:ss.mmm) 🔴
  • fetchStorageAPI: 1:07.363 (m:ss.mmm) ⬆️ 27% faster
  1. SELECT name, number, state from `bigquery-public-data.usa_names.usa_1910_current
  • fetchGetQueryResults: 5:00.514 (m:ss.mmm) 🔴
  • fetchStorageAPI: 3:20.987 (m:ss.mmm) ⬆️ 33% faster

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/nodejs-bigquery API. labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant