Is `attachDatabasePool` needed if I am using Prisma Accelerate?
I have a NextJS app that's hosted on Vercel.
The app uses Prisma Postgres with Prisma Accelerate.
As far as I understand "Prisma Postgres provides built-in connection pooling by default, enabled by Prisma Accelerate. By using Prisma Postgres, you get the benefits of connection pooling without having to configure anything." https://www.prisma.io/docs/postgres/database/connection-pooling
I saw a post on Using Prisma ORM with Vercel Fluid: https://www.prisma.io/docs/orm/prisma-client/deployment/serverless/deploy-to-vercel#using-prisma-orm-with-vercel-fluid
Would I need to do anything or is
attachDatabasePool
only for apps that are not using Prisma Postgres with Prisma Accelerate?2 Replies
You selected to wait for the human sages. They'll share their wisdom soon.
Grab some tea while you wait, or check out
#ask-ai
if you'd like a quick chat with the bot anyway!is attachDatabasePool only for apps that are not using Prisma Postgres with Prisma Accelerate?Yep, it's needed for apps that don't have connection pooling built-in.