Re: Performance Question

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Performance Question
Дата
Msg-id 200606141345.44624@hal.medialogik.com
обсуждение исходный текст
Ответ на Re: Performance Question  (Greg Stark <gsstark@mit.edu>)
Список pgsql-general
On Wednesday 14 June 2006 13:24, Greg Stark <gsstark@mit.edu> wrote:
> One way it would be unequal is if you can do your DELETE as a single
> query and the insert operation as using a single large COPY FROM.

This is definitely the fastest way to update tens of thousands of rows if
you know they all need to be replaced.  It saves on index lookups and also
network latency to the feeding app.

I have also had measurable success COPYing data into a temp table and then
using joins against that to delete,update,or insert only the rows that
actually need to be processed in the real table (saving unnecessary index
updates).

--
In a truly free society, "Alcohol, Tobacco and Firearms" would be a
convenience store chain.


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Performance Question
Следующее
От: SCassidy@overlandstorage.com
Дата:
Сообщение: Re: table has many to many relationship with itself - how