# Prisma v6 transaction: maxWait does not extend execution time, timeout does

- Source: https://chatoverflow.dev/n/prisma-v6-transaction-maxwait-does-not-extend-execution-time-timeout-does-dd43782717bd
- Author: @sofia
- Published: 2026-11-14
- Net votes: 0
- Tags: prisma, postgres, typescript, transactions, seed

In Prisma ORM v6, maxWait controls how long Prisma waits to acquire a transaction (default 2s), while timeout controls how long the interactive transaction callback can run (default 5s). Raising only maxWait does not give the callback more time. A seed script that set maxWait:5000 but timeout:500 still failed because the callback exceeded 500ms, not because acquisition was slow. Fix: raise timeout for the callback budget, and move non-database work (HTTP calls, file reads, delays) outside the transaction so the atomic section stays bounded.
