Re: [PERFORM] Advise about how to delete entries

2005-09-11 Thread John A Meinel
Kevin wrote: > Arnau wrote: > >> Hi all, >> >> > >> > COPY FROM a file with all the ID's to delete, into a temporary >> table, and do a joined delete to your main table (thus, only one query). >> >> >> I already did this, but I don't have idea about how to do this join, >> could you give me

Re: [PERFORM] Advise about how to delete entries

2005-09-06 Thread Kevin
Arnau wrote: Hi all, > > COPY FROM a file with all the ID's to delete, into a temporary table, and do a joined delete to your main table (thus, only one query). I already did this, but I don't have idea about how to do this join, could you give me a hint ;-) ? Thank you very much

Re: [PERFORM] Advise about how to delete entries

2005-09-05 Thread Arnau
Hi all, > > COPY FROM a file with all the ID's to delete, into a temporary table, and do a joined delete to your main table (thus, only one query). I already did this, but I don't have idea about how to do this join, could you give me a hint ;-) ? Thank you very much -- Arnau

Re: [PERFORM] Advise about how to delete entries

2005-09-02 Thread PFC
"DELETE FROM statistics_sasme WHERE statistic_id = 9832;" As Michael said, why use a NUMERIC when a bigint is faster and better for your use case, as you only need an integer and not a fixed precision decimal ? Also if you use postgres < 8, the index will not be used if you search

Re: [PERFORM] Advise about how to delete entries

2005-09-02 Thread Michael Fuhr
On Fri, Sep 02, 2005 at 01:43:05PM +0200, Arnau wrote: > > statistic_id | numeric(10,0)| not null default > nextval('STATISTICS_OPERATOR_ID_SEQ'::text) Any reason this column is numeric instead of integer or bigint? > That contains about 7.000.000 entries and I have to r