| От | Douglas McNaught |
|---|---|
| Тема | Re: Performance Question |
| Дата | |
| Msg-id | 8764j31oaa.fsf@suzuka.mcnaught.org обсуждение |
| Ответ на | Performance Question (Terry Lee Tucker <terry@esc1.com>) |
| Список | pgsql-general |
Terry Lee Tucker <terry@esc1.com> writes: > Hello List: > > I've been told that an update to a record is equivalent to a delete > and insert operation. We have a utility written in Perl that brings > into sync certain elements of 50 thousand records on 8 structurally > identical databases. We threw together the script and decided to > just delete the record and re-insert it with the data that was > brought into sync. Now the question: Is it just as fast to do it > this way, or is there some hidden advantage to performing an update? UPDATE will probably be somewhat faster because it's only one SQL statement to parse, plan and execute. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера