supabase / postgres

Unmodified Postgres with some useful plugins

Home Page:https://supabase.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

connection via pgbouncer takes 10x longer to load

kopy-kat opened this issue · comments

commented

Bug report

Describe the bug

Related to issue #203 (which is closed now): I'm currently encountering an issue where, holding everything else constant, if I switch from a connection to port 5432 to a connection to post 6543 using pg_bouncer, the same query takes 10x longer. This occurs in a local environment, but haven't been able to test in production yet.

Tech information

  • Nextjs v13.2.1
  • prisma v4.11.0

Could you share more details about your local development setup?

We officially support the CLI for local development but it doesn't run pgbouncer locally at all.

commented

I was not using the CLI, but using prisma within a serverless frontend (NextJS) framework