pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Bendik Rognlien Johansen <bendik.johansen@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow query with joins
Date: Fri, 13 Jan 2006 17:34:54 -0600
Message-ID: <20060113233454.GM9017@pervasive.com> (raw)
In-Reply-To: <850AD6F9-08BD-4EF2-A549-407FD87C7974@gmail.com>
References: <C24D65E0-2D32-43DF-ABCD-79A47C5243AF@gmail.com>
	<13028.1136994347@sss.pgh.pa.us>
	<65451320-7D72-4544-A8E8-CD93212E4A5D@gmail.com>
	<20060111202345.GC63175@pervasive.com>
	<850AD6F9-08BD-4EF2-A549-407FD87C7974@gmail.com>

On Wed, Jan 11, 2006 at 10:30:58PM +0100, Bendik Rognlien Johansen wrote:
> The sort is definitively the culprit. When I removed it the query was  
> instant. I tried setting work_mem = 131072 but it did not seem to  
> help. I really don't understand this :-( Any other ideas?

What's explain analyze show with the sort in?
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (6+ messages)

Message-ID: <20060113233454.GM9017@pervasive.com>
Permalink:  ../20060113233454.GM9017@pervasive.com/
Also on:    postgresql.org/message-id/20060113233454.GM9017@pervasive.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@pervasive.com, bendik.johansen@gmail.com
  Subject: Re: Slow query with joins
  In-Reply-To: <20060113233454.GM9017@pervasive.com>

* 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