Rust sqlx: Use sqlx pooler or Neon pooler?
Rust crate
Should I just set
May not be a straightforward answer, and may be better suited for the
sqlx has a built in connection pool: https://docs.rs/sqlx/latest/sqlx/pool/index.html. You use it like this:Should I just set
max_connections to 1, and use the Neon pooler host? Or create some amount of connections with the sqlx PgPool, and use the non-pooled Neon host? Or perhaps a combination of the two?May not be a straightforward answer, and may be better suited for the
sqlx maintainers. But wondering if you had any ideas off the bat. To further complicate this, the Rust code here will be running from AWS Lambda.