From: | Steve Crawford <scrawford(at)pinpointresearch(dot)com> |
---|---|
To: | "Porell, Chris" <Chris(dot)Porell(at)ceridian(dot)com> |
Cc: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Database performance problem |
Date: | 2007-06-12 20:35:25 |
Message-ID: | 466F038D.1020707@pinpointresearch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Porell, Chris wrote:
> Hi All,
> I've changed shared_buffers, checkpoint_segments, effective_cache_size and
> random_page_cost in an attempt to improve performance. That has helped a
> little...
Another thought. Have you looked at "work_mem" - this is probably a far
more important setting.
The units are kilobytes and you can set this on a session-by-session
basis to test without needing to update postgresql.conf or reload the
server by issuing "set work_mem to xxx;" I have individual nightly
batch-runs where I greatly improved the processing time by setting
work_mem to values in the range of 100000-500000 as needed.
Note that if you are comparing your old configuration to your new one,
this parameter used to be called "sort_mem".
Cheers,
Steve
From | Date | Subject | |
---|---|---|---|
Next Message | Andrej Ricnik-Bay | 2007-06-12 20:41:58 | Re: Database performance problem |
Previous Message | Andrej Ricnik-Bay | 2007-06-12 20:35:06 | Re: Foreign Key error |