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

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

Open
cesco69 opened this issue Mar 4, 2025 · 0 comments

Comments

@cesco69
Copy link
Contributor

cesco69 commented Mar 4, 2025

Hi,

Instead of retrieving the first available client from the pool, would it be possible to 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.

I have made a PR #3398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants