add query pipelining support.
Hey
pg recently added query pipelining support. postgres has had query pipelining on by default for ages.
PostgreSQL pipeline mode allows running multiple concurrent queries on the same connection without waiting for responses.
For that to work we'd need to stop blocking queries in SingleConnectionProvider, letting more consumers run a query on the same connection at the same time.
The biggest benefit is:
const [results1, results2] = await Promise.all([
getQuery1(trx).execute(),
getQuery2(trx).execute(),
])stops surprising people.
This is not #904's batched queries feature. We are not introducing public APIs that infer result types from multiple queries. We are not running multi-statement single queries - which do not support parameterization in many databases (e.g. PostgreSQL), and not even results in some (e.g. SQLite).
Source: kysely-org/kysely