Open
Description
We are using https://github.com/oxidecomputer/async-bb8-diesel extensively throughout Nexus, so that we can asynchronously issue diesel operations.
An upgrade to https://crates.io/crates/diesel-async would provide the following benefits:
- First-class support.
async-bb8-diesel
is maintained by us, by swapping between tokio threads, butdiesel-async
is supported by diesel devs. - Pipelined requests.
diesel-async
usestokio_postgres
, which supports pipelining: https://docs.rs/tokio-postgres/latest/tokio_postgres/index.html#pipelining - ... speaking of which,
tokio_postgres
is a rust client library, which might help reduce our reliance on thelibpq
library.