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

Do not SELECT 1 before every query #582

Merged
merged 2 commits into from Mar 17, 2020
Merged

Do not SELECT 1 before every query #582

merged 2 commits into from Mar 17, 2020

Conversation

pimeys
Copy link
Contributor

@pimeys pimeys commented Mar 17, 2020

We define our connection pool so it doesn't do a health check every time fetching a new connection from the pool. This was not the case and for every single query we got SELECT 1 before the actual query, slowing the query down.

This change is now fixed in our pool and this PR updates quaint and mobc to actually implement the health check parameter how it should work.

We anyhow reconnect after a certain idle time.

@pimeys pimeys added kind/bug A reported bug. tech/engines/query engine Issue in the Query Engine labels Mar 17, 2020
@pimeys pimeys added this to the Preview 25 milestone Mar 17, 2020
@pimeys pimeys self-assigned this Mar 17, 2020
@pimeys pimeys merged commit a50009b into master Mar 17, 2020
@pimeys pimeys deleted the fix-mobc-health-checks branch March 17, 2020 16:39
@pimeys pimeys changed the title Fix mobc health checks Do not SELECT 1 before every query Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A reported bug. tech/engines/query engine Issue in the Query Engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant