Re: Deleting orphaned records (not exists is very slow)

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: Michael Glaesemann <grzm(at)seespotcode(dot)net>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Deleting orphaned records (not exists is very slow)
Date: 2010-09-28 00:22:13
Message-ID: AANLkTim=MOwmhCLnyBf46zep5+LL=ONGekeMriMCBGjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 28, 2010 at 12:37 AM, Tim Uckun <timuckun(at)gmail(dot)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(at)postgresql(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Haas 2010-09-28 00:40:22 Re: ECPG - Some errno definitions don't match to the manual
Previous Message Tim Uckun 2010-09-27 23:41:36 Killing "stuck" queries and preventing queries from getting "stuck"