The Prompt BakeryTemplates and prompts

Fix · Supabase and databases

Too many connections / remaining connection slots

Blocks your workNot checked against the vendor's current screens

What you may see

  • The database refuses new connections under traffic
  • It works, then random errors appear when many visitors come

Most likely cause

Server functions open a new database connection each time instead of using the pooled connection address.

Check first (about two minutes)

  1. Check which connection string the server code uses: direct or pooled?

The fix prompt

What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.

Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.

Prompt language

Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.

After you tried it, did it work?

Steps

  1. Find where the app connects to the database (direct driver or the data API).
  2. If using a direct driver in serverless functions, switch to the pooled connection address and keep one client per process.
  3. Prefer the project's data API for simple reads and writes.

Do not do this

  • Do not put the database password in browser code.
  • Do not raise connection limits without understanding the cost.

Related

Try another entry

How can we help?

What do you need?
Your email, so we can reply (optional)Only enter your own email. We reply there.