Skip to content

fix(bq_driver): Performance improvements SQLTables#1579

Merged
sachinpro merged 2 commits into
mainfrom
SQLtables_optimization
Jul 13, 2026
Merged

fix(bq_driver): Performance improvements SQLTables#1579
sachinpro merged 2 commits into
mainfrom
SQLtables_optimization

Conversation

@shivamd-gpartner

@shivamd-gpartner shivamd-gpartner commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

perf result after running on this pipeline
Now our driver is on par of the existing driver with SQLTables.

GetFilteredTables used to run a SELECT … FROM INFORMATION_SCHEMA.TABLES query job for every dataset. A BigQuery query job has multi-second fixed overhead regardless of result size. Switched it to the lightweight tables.list REST call + client-side name/type filtering — the same approach SQLColumns already used

When SQL_ATTR_METADATA_ID = TRUE, the catalog and schema arguments are exact identifiers, not patterns — yet the driver was calling projects.list (list all projects) and datasets.list (list all datasets) just to match one. That datasets.list call alone was 91 seconds on a busy project (throttled/retried). Now we use the names directly and skip both listings.

@shivamd-gpartner shivamd-gpartner force-pushed the SQLtables_optimization branch 2 times, most recently from 71d862c to 7742d6d Compare July 7, 2026 04:50
@shivamd-gpartner shivamd-gpartner force-pushed the SQLtables_optimization branch from 7742d6d to 754544c Compare July 7, 2026 05:08
@shivamd-gpartner shivamd-gpartner changed the title SQLTables optimization fix(bq_driver): Performance improvements SQLTables Jul 7, 2026
@shivamd-gpartner shivamd-gpartner marked this pull request as ready for review July 7, 2026 07:23
@shivamd-gpartner shivamd-gpartner requested a review from a team as a code owner July 7, 2026 07:23

@sachinpro sachinpro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sachinpro sachinpro requested a review from a team July 8, 2026 13:10
@sachinpro sachinpro merged commit 677e815 into main Jul 13, 2026
21 of 24 checks passed
@sachinpro sachinpro deleted the SQLtables_optimization branch July 13, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants