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

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: Deleting orphaned records (not exists is very slow)
Дата
Msg-id AANLkTim=MOwmhCLnyBf46zep5+LL=ONGekeMriMCBGjQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Deleting orphaned records (not exists is very slow)  (Tim Uckun <timuckun@gmail.com>)
Ответы Re: Deleting orphaned records (not exists is very slow)  (Tim Uckun <timuckun@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tim Uckun
Дата:
Сообщение: Killing "stuck" queries and preventing queries from getting "stuck"
Следующее
От: Mike Christensen
Дата:
Сообщение: Installing pgAdmin on a Mac