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

Test: Add dataset cache to BigQuery connector #14812

Closed
wants to merge 1 commit into from

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Oct 28, 2022

Run tests with secret #14729

@cla-bot cla-bot bot added the cla-signed label Oct 28, 2022
@github-actions github-actions bot added the docs label Oct 28, 2022
@hashhar hashhar force-pushed the ebi/adamjshook/bigquery-list-schemas branch from f41751e to 41917b3 Compare November 2, 2022 05:42
When caseInsensitiveNameMatching=true, the BigQueryClient
makes a call to listDatasets for each call on toRemoteDataset.
This is problematic when running queries like SHOW SCHEMAS
since listDatasets is called once to get the initial list,
then once again for each schema. This is expensive if the
BigQuery project has a large number of datasets.

This commit adds a cache to listing datasets to drastically
reduce the query time for SHOW SCHEMAS.
@hashhar hashhar force-pushed the ebi/adamjshook/bigquery-list-schemas branch from 41917b3 to b69938f Compare November 2, 2022 13:59
@hashhar hashhar closed this Nov 3, 2022
@hashhar hashhar deleted the ebi/adamjshook/bigquery-list-schemas branch November 3, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants