Re: Deletion Challenge

Поиск
Список
Период
Сортировка
От Benjamin Smith
Тема Re: Deletion Challenge
Дата
Msg-id 7459510.OaUqLR0OgK@tesla.schoolpathways.com
обсуждение исходный текст
Ответ на Re: Deletion Challenge  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
> test=> delete from cash_journal where ARRAY[click, cash_journal_id] NOT in
> (select max(ARRAY[click,cash_journal_id]) from cash_journal group by
> fairian_id); DELETE 7


For what it's worth, we've run into *severe* performance issues using in() if
there are a large number of values in conjunction with a complex query. (EG:
more than 10,000) Using a with() prefix table and joining against that doesn't
seem to carry anything like a similar performance penalty.


В списке pgsql-general по дате отправления:

Предыдущее
От: Benjamin Smith
Дата:
Сообщение: Re: Deletion Challenge
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: HELP!!! The WAL Archive is taking up all space