pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: pgsql-performance@postgresql.org
Subject: Re: 'best practises' to speed up sorting? tuning postgresql.conf
Date: Sat, 28 Jun 2003 17:07:52 +0530
Message-ID: <200306281707.52317.shridhar_daithankar@nospam.persistent.co.in> (raw)
In-Reply-To: <IDEOKBCDGGIDOBADNGAPEEGADNAA.chris@hutchinsonsoftware.com>
References: <IDEOKBCDGGIDOBADNGAPEEGADNAA.chris@hutchinsonsoftware.com>

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




view thread (3+ messages)  latest in thread

Message-ID: <200306281707.52317.shridhar_daithankar@nospam.persistent.co.in>
Permalink:  ../200306281707.52317.shridhar_daithankar@nospam.persistent.co.in/
Also on:    postgresql.org/message-id/200306281707.52317.shridhar_daithankar@nospam.persistent.co.in

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: shridhar_daithankar@persistent.co.in
  Subject: Re: 'best practises' to speed up sorting? tuning postgresql.conf
  In-Reply-To: <200306281707.52317.shridhar_daithankar@nospam.persistent.co.in>
  References: <IDEOKBCDGGIDOBADNGAPEEGADNAA.chris@hutchinsonsoftware.com> <200306281707.52317.shridhar_daithankar@nospam.persistent.co.in>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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