[Error] Using Drizzle with Neon DB

Is drizzle compatible with neon pooled connections? Neon pooled connections don't support prepared statements, and it seems like drizzle uses prepared statements internally for all requests, but I'm not sure.

https://github.com/drizzle-team/drizzle-orm/blob/main/drizzle-orm/src/pg-core/query-builders/select.ts#L537

https://neon.tech/docs/connect/connection-pooling

--

We've been getting many issues with our nextjs/vercel serverless production app using drizzle-orm/neon-http , @neondatabase/serverless , and neon pooled connection with autoscaling. Issues like "prepared statement x doesn't exist" and db connections becoming clogged. Wondering if this might be a cause for that
Neon
Neon uses PgBouncer to offer support for connection pooling, enabling up to 10,000 concurrent connections. PgBouncer is a lightweight connection pooler for Postgres. This topic describes Neon's defaul...
GitHub
TypeScript ORM that feels like writing SQL. Contribute to drizzle-team/drizzle-orm development by creating an account on GitHub.
Was this page helpful?