How does this work with pipelining? #280
-
Sorry if this is a dumb question, trying to understand how this would work.
So am I correct to then assume that pipelining will never naturally happen? Especially in a standard HTTP server? Because |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can perform pipelining with connections from There are two use cases:
|
Beta Was this translation helpful? Give feedback.
You can perform pipelining with connections from
tokio-postgres
regardless if you create the connection manually or get them from the pool.There are two use cases:
One worker issues two (or more) queries at the same time using a single connection.
This works just as explained in the
tokio-postgres
documentation:Two (or more) workers sharing a single connection and using pipelining that way.
This requires a different way to think about pooled…