PrismaP
Prisma5mo ago
2 replies
hanbergsen

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?
Was this page helpful?