pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpool connection
2+ messages / 2 participants
[nested] [flat]
* pool connection
@ 2017-12-29 10:47 hmidi slim <hmidi.slim2@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: hmidi slim @ 2017-12-29 10:47 UTC (permalink / raw)
To: pgsql-general
HI,
I'm trying to understand the utility of pool connection, I found that it's
useful to enhance the performance of a database. However I want to know if
it is a good option to put a large number in max_connection option to
handle a large number of connection in an app?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pool connection
@ 2017-12-29 11:53 Michael Paquier <michael.paquier@gmail.com>
parent: hmidi slim <hmidi.slim2@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2017-12-29 11:53 UTC (permalink / raw)
To: hmidi slim <hmidi.slim2@gmail.com>; +Cc: pgsql-general
On Fri, Dec 29, 2017 at 11:47:01AM +0100, hmidi slim wrote:
> I'm trying to understand the utility of pool connection, I found that it's
> useful to enhance the performance of a database. However I want to know if
> it is a good option to put a large number in max_connection option to
> handle a large number of connection in an app?
A couple of hundred connections is already a lot as a point of
contention is snapshot build, which is particularly painful for OLTP
workloads. If you reach a point where you need hundreds of connections,
I would recommend using pgbouncer. This will save your server much CPU
by minimizing the effects of connections still around but idle.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-12-29 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-29 10:47 pool connection hmidi slim <hmidi.slim2@gmail.com>
2017-12-29 11:53 ` Michael Paquier <michael.paquier@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox