| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера