Consider attachDatabasePool #177

Open
opened 2026-11-08 18:18:10 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-08 18:18:10 +00:00 (Migrated from github.com)

@vercel/functions attachDatabasePool would let Fluid compute close idle pg connections cleanly. Consider it if connection limits show up.

Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.

`@vercel/functions` `attachDatabasePool` would let Fluid compute close idle `pg` connections cleanly. Consider it if connection limits show up. _Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08._
chris-kreidl commented 2026-11-08 20:17:12 +00:00 (Migrated from github.com)

What this is about. On Vercel's Fluid compute, function instances are reused and paused. attachDatabasePool from @vercel/functions lets an instance close idle Postgres connections cleanly before it's suspended, instead of leaving them open until they time out.

Status (checked 2026-11-08): not used.

When it matters: if Prisma Postgres ever reports too many connections. Small to add; low priority.

**What this is about.** On Vercel's Fluid compute, function instances are reused and paused. `attachDatabasePool` from `@vercel/functions` lets an instance close idle Postgres connections cleanly before it's suspended, instead of leaving them open until they time out. **Status (checked 2026-11-08):** not used. **When it matters:** if Prisma Postgres ever reports too many connections. Small to add; low priority.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#177
No description provided.