Re: TPS in direct Postgres Vs TPS in pgbouncer - Mailing list pgsql-admin

From Jeffery Janes
Subject Re: TPS in direct Postgres Vs TPS in pgbouncer
Date
Msg-id CAMkU=1xvG99AY7-SiOjppHVZXGdFYzRHOD1GFeSV_mBj84t53w@mail.gmail.com
Whole thread
In response to TPS in direct Postgres Vs TPS in pgbouncer  (Raj <rajeshkumar.dba09@gmail.com>)
List pgsql-admin


On Sun, Jun 21, 2026 at 9:24 AM Raj <rajeshkumar.dba09@gmail.com> wrote:
Hi All,

When the application team is using posytgres directly for 17.9 version, they get necessary TPS.

When they use pgbouncer, they get 50% reduction in TPS.

What are general advices?

What is the transaction being used?  If it is something very simple, like pgbench's built-in -S, then I think this is expected.  Injecting pgbouncer doubles the amount of network/IPC thrashing needed.  If you have a meaty transaction, this might not matter but on a very light transaction you might be doubling something which is already counting for 90% of the time.

Cheers,

Jeff

pgsql-admin by date:

Previous
From: Jorge Batista
Date:
Subject: RE: TPS in direct Postgres Vs TPS in pgbouncer
Next
From: bertrand HARTWIG
Date:
Subject: Re: About asynchronous I/O