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

perf(go/adbc/driver/snowflake): Implement concurrency limit #974

Merged
merged 6 commits into from
Aug 10, 2023

Conversation

zeroshade
Copy link
Member

In order to improve the performance of the ADBC Snowflake driver, particularly for larger size result sets, we should limit the concurrent connections we make the snowflake during the prefetching in order to avoid excessive blocking / throttling.

go/adbc/go.sum Outdated Show resolved Hide resolved
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

+1 for formal config parameters

@zeroshade
Copy link
Member Author

@lidavidm Do you think it makes sense for the concurrency to be a driver/connection level config param or should it be a statement level config param alongside the queue size?

@lidavidm
Copy link
Member

lidavidm commented Aug 9, 2023

Statement level seems most appropriate, though you could inherit it from a connection level parameter for convenience

@zeroshade zeroshade requested a review from lidavidm August 9, 2023 16:58
c/validation/adbc_validation_util.h Outdated Show resolved Hide resolved
docs/source/driver/snowflake.rst Outdated Show resolved Hide resolved
go/adbc/driver/snowflake/connection.go Outdated Show resolved Hide resolved
go/adbc/driver/snowflake/statement.go Outdated Show resolved Hide resolved
@lidavidm lidavidm merged commit 36f7233 into apache:main Aug 10, 2023
59 of 65 checks passed
@lidavidm lidavidm added this to the ADBC Libraries 0.6.0 milestone Aug 10, 2023
@zeroshade zeroshade deleted the snowflake-concurrency branch August 11, 2023 19:57
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.

3 participants