From: | andy <andy(at)squeakycode(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Monitoring number of backends |
Date: | 2013-10-22 21:12:02 |
Message-ID: | 5266EA22.1070904@squeakycode.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/22/2013 3:44 PM, Tom Lane wrote:
> andy <andy(at)squeakycode(dot)net> writes:
>> On 10/22/2013 2:18 PM, John R Pierce wrote:
>>> that style of php programming, you're getting some HUGE overhead in
>>> connect/disconnect per web page. putting pg_bouncer in the middle
>>> will make a HUGE improvement, possibly a second per page load on a busy
>>> server.
>
>> No, actually, I don't think my connect overhead is huge. My apache and
>> postgres are on the same box, and it connects using unix socket.
>
> You're ignoring the fact that PG backends have a pretty considerable
> startup transient. By the time a backend has gotten its caches populated
> enough to be efficient, it's expended a lot of cycles. You might be
> getting away with this approach under low load, but it will bite you in
> painful places eventually.
>
> regards, tom lane
>
>
> but it will bite you in
> painful places eventually.
:-) heh.
Well I think PG is even more impressive now. My server is on a VM, and
I'm pretty much doing things the slow way, and I get a page back in
500ms. And this is a busy time of day.
Of course, I'm right next to the server. Anyone wanna check page times
for me?
http://jasper.iowaassessors.com/parcel.php?gid=99680
I'm talking JUST parcel.php ... the maps and photos don't count.
Thanks all.
-Andy
From | Date | Subject | |
---|---|---|---|
Next Message | James Sewell | 2013-10-22 22:41:17 | Re: pg_dumpall from a script |
Previous Message | John R Pierce | 2013-10-22 20:53:52 | Re: Monitoring number of backends |