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

chore(weave): add with_new_client context for concurrent ch queries #3168

Conversation

gtarpenning
Copy link
Member

@gtarpenning gtarpenning commented Dec 6, 2024

Description

Introduces a with_new_client context that returns a new ch client to handle concurrent database operations.

Added a context manager with_new_client() to temporarily switch to the secondary client for specific operations. Separate clients maintain separate session IDs, which should prevent the SESSION_LOCKED error.

Testing

@gtarpenning gtarpenning changed the title add context chore(weave): add secondary client context for concurrent ch queries Dec 6, 2024
@gtarpenning gtarpenning marked this pull request as ready for review December 6, 2024 19:15
@gtarpenning gtarpenning requested a review from a team as a code owner December 6, 2024 19:15
@gtarpenning gtarpenning force-pushed the 12-06-chore_weave_add_dynamic_batch_processor_for_call_stream_batching branch from 8c91d2d to 9d77e3e Compare December 6, 2024 19:26
@gtarpenning gtarpenning force-pushed the 12-06-chore_weave_add_secondary_client_context_for_concurrent_ch_querying branch from 2893ecb to c324413 Compare December 6, 2024 19:26
@gtarpenning gtarpenning force-pushed the 12-06-chore_weave_add_secondary_client_context_for_concurrent_ch_querying branch from 5c65027 to ca4a8cb Compare December 6, 2024 20:13
@gtarpenning gtarpenning changed the title chore(weave): add secondary client context for concurrent ch queries chore(weave): add with_new_client context for concurrent ch queries Dec 6, 2024
Base automatically changed from 12-06-chore_weave_add_dynamic_batch_processor_for_call_stream_batching to master December 6, 2024 21:46
@gtarpenning gtarpenning requested a review from tssweeney December 6, 2024 21:57
@gtarpenning gtarpenning merged commit 463e92d into master Dec 6, 2024
122 checks passed
@gtarpenning gtarpenning deleted the 12-06-chore_weave_add_secondary_client_context_for_concurrent_ch_querying branch December 6, 2024 22:21
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants