Skip to content

feat(pg-pool): Optimize client retrieval from pool by prioritizing free client with cached prepared statements #1

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

Closed
wants to merge 1 commit into from

Conversation

cesco69
Copy link
Owner

@cesco69 cesco69 commented Mar 4, 2025

Instead of retrieving the first available client from the pool, first check if there is a free client that already has cached prepared statements. This could improve performance by reducing the need to re-prepare statements on different clients.

see brianc#3397

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.

1 participant