Re: ETL optimization - Mailing list pgsql-performance

From Bricklen Anderson
Subject Re: ETL optimization
Date
Msg-id 42BB18B2.4040009@PresiNET.com
Whole thread Raw
In response to Re: ETL optimization  (Meetesh Karia <meetesh.karia@gmail.com>)
List pgsql-performance
Meetesh Karia wrote:
> I don't know what this will change wrt how often you need to run VACUUM
> (I'm a SQL Server guy), but instead of an update and insert, try a
> delete and insert.  You'll only have to find the duplicate rows once and
> your insert doesn't need a where clause.
>
> Meetesh
>
Vacuum analyze in generally run about once an hour. You know, I didn't even
think to try a delete + insert combo (which will not be visible to the other
queries that are occurring). Truncate is out of the question, because of the
aforementioned queries, but I'll give the d+i a shot.

Thanks!


--
_______________________________

This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in
error, please advise me (by return e-mail or otherwise) immediately.
_______________________________

pgsql-performance by date:

Previous
From: Meetesh Karia
Date:
Subject: Re: ETL optimization
Next
From: Jacques Caron
Date:
Subject: Re: ETL optimization