Skip to content

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

Open
@cesco69

Description

@cesco69

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions