Prisma · sdk · fg-0296

Queries hang or fail with 'Unable to start a transaction in the given time' after moving Prisma to driver adapters

If you see Transaction API error: Unable to start a transaction in the given time, the cause and the fix for Prisma are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun