Re: Deletion Challenge - Mailing list pgsql-general

From Benjamin Smith
Subject Re: Deletion Challenge
Date
Msg-id 7459510.OaUqLR0OgK@tesla.schoolpathways.com
Whole thread Raw
In response to Re: Deletion Challenge  (Adrian Klaver <adrian.klaver@aklaver.com>)
List 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 by date:

Previous
From: Benjamin Smith
Date:
Subject: Re: Deletion Challenge
Next
From: Jim Nasby
Date:
Subject: Re: HELP!!! The WAL Archive is taking up all space