Skip to content

Implicit pipelining for connection pool #168

@fox0430

Description

@fox0430

Currently, each pool.query() call acquires a connection, sends one query, waits for the response, then releases the connection. When many queries are pending, they are processed one at a time per connection, resulting in one TCP round trip per query.

Libraries like postgres.js achieve higher throughput by automatically batching multiple pending queries into a single TCP write (implicit pipelining).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions