| От | Volkan YAZICI |
|---|---|
| Тема | Re: Performance of update |
| Дата | |
| Msg-id | 87prtg2zqe.fsf@alamut.mobiliz.com.tr обсуждение исходный текст |
| Ответ на | Performance of update (sam <sam.mahindrakar@gmail.com>) |
| Список | pgsql-general |
On Wed, 26 Mar 2008, sam <sam.mahindrakar@gmail.com> writes: > Iam trying to update a database table with approx 45000 rows. Iam not > updating all rows at a time. Iam updating 60 rows at a given time for > example. and this is happening in a FOR LOOP. A function that has the > update statements is called within the loop. > > The updates take too long.....is postgres slow in doing updates on > large tables or is it because of the function call within the loop??? Are there any ON UPDATE CASACADE and FK consistency checks on the table. Are related columns used during UPDATE INDEXed appropriately? It'd be helpful if you can supply your table schema and UPDATE query string. Regards.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера