Skip site navigation (1) Skip section navigation (2)

Re: 'best practises' to speed up sorting? tuning postgresql.conf

From: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: 'best practises' to speed up sorting? tuning postgresql.conf
Date: 2003-06-28 11:37:52
Message-ID: 200306281707.52317.shridhar_daithankar@nospam.persistent.co.in (view raw or flat)
Thread:
Lists: pgsql-performance
On Saturday 28 June 2003 17:01, Chris Hutchinson wrote:
> I'm wondering how to speed up sorting which is slowing a query run
> regularly on a linux postgresql 7.3.3 system.
>
> The box is a dual PIII with 1Gb ram. The database is located on a 20Gb SCSI
> disk, with WAL on a separate disk.
>
> The only changes I've made to postgresql.conf so far are:
> shared_buffers=4000
> sort_mem=4000

sort_mem is in kbs. So you are setting it roughyl 4MB. Given that you don't 
seem to have any shortage of RAM, how about 32/64/128MB RAM till things work 
as expected?

Of course, setting it so in postgresql.conf would be a bad idea. Just set for 
the session that makes this query and reset it back.

Keep us posted on updates..

 Shridhar


In response to

pgsql-performance by date

Next:From: Arjen van der MeijdenDate: 2003-06-28 11:58:09
Subject: Re: 'best practises' to speed up sorting? tuning postgresql.conf
Previous:From: Chris HutchinsonDate: 2003-06-28 11:31:48
Subject: 'best practises' to speed up sorting? tuning postgresql.conf

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group