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

nexus: impl QueryExecutor for Catalog #1150

Merged
merged 2 commits into from
Jan 25, 2024
Merged

nexus: impl QueryExecutor for Catalog #1150

merged 2 commits into from
Jan 25, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Jan 24, 2024

To share code, Catalog was storing a postgres query executor
Unfortunately, that caused two connections for every nexus connection

Remove is_connection_valid since it isn't used, & for pg was wrong
(see deadpool-postgres for how they check if connection is valid)

Alternative fix would've been to use more connection pools,
that could be added in the future if necessary

@serprex serprex requested a review from iskakaushik January 24, 2024 22:27
To share code, Catalog was storing a postgres query executor
Unfortunately, that caused two connections for every nexus connection

Remove is_connection_valid since it isn't used, & for pg was wrong
(see deadpool-postgres for how they check if connection is valid)

Alternative fix would've been to use more connection pools,
that could be added in the future if necessary
@serprex serprex force-pushed the nexus-catalog-pool branch from d7794f0 to 842134b Compare January 24, 2024 22:29
@serprex serprex merged commit aefdeaa into main Jan 25, 2024
7 checks passed
@serprex serprex deleted the nexus-catalog-pool branch January 25, 2024 16:21
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