Re: Query optimisation and sorting on external merge

From: Jake Stride <jake(at)omelett(dot)es>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query optimisation and sorting on external merge
Date: 2009-07-29 12:37:53
Message-ID: c9ce9fab0907290537y110dffb2y8fe148c1d63d5625@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/7/29 A. Kretschmer <andreas(dot)kretschmer(at)schollglas(dot)com>:
> In response to Jake Stride :
>> Hi,
>>
>> I'm trying to optimise a query at the moment, I've added some new
>> indexes to stop seq scans, but I'm now trying to work out if I can
>> stop a join using external sort to speed up the query. I've included
>
> Increase work_mem to force sort in memory.
>

That stops the external storage thanks. I still think I need to
optimise the query though as there are 3 other similar queries which
are unioned together to form a view.

Jake
>
> Andreas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mzhang 2009-07-29 12:43:02 org.postgresql.util.PSQLException: PANIC: could not write to log file 6
Previous Message nha 2009-07-29 12:27:29 Re: Query optimisation and sorting on external merge