Re: Deleting orphaned records (not exists is very slow) - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject Re: Deleting orphaned records (not exists is very slow)
Date
Msg-id AANLkTim=MOwmhCLnyBf46zep5+LL=ONGekeMriMCBGjQ@mail.gmail.com
Whole thread Raw
In response to Re: Deleting orphaned records (not exists is very slow)  (Tim Uckun <timuckun@gmail.com>)
Responses Re: Deleting orphaned records (not exists is very slow)  (Tim Uckun <timuckun@gmail.com>)
List pgsql-general
On Tue, Sep 28, 2010 at 12:37 AM, Tim Uckun <timuckun@gmail.com> wrote:
>> If the table is large, I sometimes use the following pattern:
>
> The table is very large so I will use your advice thanks.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

The other thing that just hit my mind, is that you mind need to bump
up work_mem a bit, just for the session. so
SET work_mem=32M
<your query>

and that should make it slightly faster.




--
GJ

pgsql-general by date:

Previous
From: Tim Uckun
Date:
Subject: Killing "stuck" queries and preventing queries from getting "stuck"
Next
From: Mike Christensen
Date:
Subject: Installing pgAdmin on a Mac