Pooling question for using Neon with Cloudflare Hyperdrive
I'd like to use Neon with Hyperdrive, but I see conflicting documentation whether to turn on/off Neon's own pooling.
Cloudflare's docs says to turn it off:
https://developers.cloudflare.com/hyperdrive/examples/neon/#:~:text=uncheck%20the%20connection%20pooling
Neon's docs says to turn it on:
https://neon.tech/blog/hyperdrive-neon-faq#so-should-i-use-hyperdrive-together-with-neons-pooling
WHO DO I TRUST
Neon
Using Hyperdrive with Neon and Cloudflare Workers: FAQ - Neon
Understand how Cloudflare's Hyperdrive can enhance the performance of your Neon databases, especially when used with Cloudflare Workers.
1 Reply
ratty-blush•7mo ago
@Jikyu
Thank you for bringing this to our attention. You'd want to use Neon's Direct Connection String in Cloudflare Hyperdrive's setup since CF manages it's own pool and a direct connection string guarantees a Postgres connection allowing you to skip the wait times (until the current queue of transaction completes in pgBouncer).