- Symptom
- Transaction API error: Unable to start a transaction in the given time.Requests wait forever under load instead of failing with a pool timeoutconnection_limit and pool_timeout in the URL no longer shape the pool
- Cause
- With driver adapters the pool belongs to the driver. For pg that means 10 connections, no acquire or connect timeout, and a 10 second idle timeout, where Prisma 6 used CPUs times 2 plus 1 connections with a 10 second acquire and 5 second connect timeout.
- Fix
- Set pool size and timeouts on the adapter explicitly.
- Apply
const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL, max: 10, connectionTimeoutMillis: 5_000, idleTimeoutMillis: 300_000, })- Affected
- Prisma ORM 7.0 and later, and 6.x with the driverAdapters feature
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders