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)
- 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
- Find where the app connects to the database (direct driver or the data API).
- If using a direct driver in serverless functions, switch to the pooled connection address and keep one client per process.
- 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.