| От | Michael Fuhr |
|---|---|
| Тема | Re: update from multiple rows |
| Дата | |
| Msg-id | 20050124064549.GA39811@winnie.fuhr.org обсуждение |
| Ответ на | Re: update from multiple rows ("adam etienne" <a_eti@hotmail.com>) |
| Список | pgsql-sql |
On Sun, Jan 23, 2005 at 11:36:11AM +0000, adam etienne wrote: > In fact the computation is somewhat more complex than an average and the > data set is quite large... I did some test with view & triggers but it's > too slow.. Can you provide any more detail about the algorithm and the number of rows that you might have to insert or update? How did the test triggers work? If you used row-level triggers and if a trigger on one row updated multiple rows, then you might have been updating rows more times than necessary (once by explicit update and one or more unnecessary times by triggers on other rows). -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера