Re: Make PGSQL faster

From: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
To: Torsten Schulz <tsschulz(at)gmx(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Make PGSQL faster
Date: 2003-03-21 20:06:11
Message-ID: 1048277170.32501.2459.camel@kant.mcmillan.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, 2003-03-21 at 06:53, Torsten Schulz wrote:
> Hi,
>
> we have a great Database with Postgres. It is a Community.
>
> We have a Dual-CPU-System with 1 GB RAM
>
> It works on Apache with PHP. But we hadn't enough Performance.
>
> What's the optimized configuration with many Database-actions on great
> tables in a lapp-system?

It is hard to say without more information, but it may be that you
should increase the buffers used by postgres - 1000 is a good starting
point.

My experience suggests that performance is not a 'general' thing
applying to the whole application but in most cases the bad performance
will be one query out of a hundred.

In my applications I wrap my calls to PostgreSQL so I can log the amount
of time each query took (in microseconds). Then when I have a query
that takes 10mS, I know I can ignore it and concentrate on the one that
takes 20000mS instead.

Regards,
Andrew.
--
---------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Survey for nothing with http://survey.net.nz/
---------------------------------------------------------------------

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-03-22 00:15:23 Re: Page Size in Future Releases
Previous Message Tom Lane 2003-03-21 06:18:32 Re: postgresql meltdown on PlanetMath.org