Re: Update command too slow

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Update command too slow
Дата
Msg-id 87acqjkq77.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Update command too slow  (Venkatesh Babu <venkatbabukr@yahoo.com>)
Список pgsql-general
Venkatesh Babu <venkatbabukr@yahoo.com> writes:

> Hi,
>
> There aren't any triggers but there are 75262 update
> statements. The problem is that we have a datatype
> called as "Collection" and we are fetching the data
> rows into it, modifying the data and call
> Collection.save(). This save method generates one
> update satement per record present in it.

Are you running in autocommit mode? You might try disabling autocommit and
committing once at the end of the transaction. Postgres runs faster when not
committing more than necessary.

--
greg

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

Предыдущее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: How many connections now ?
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: is this index bloat?