Re: One tuple per transaction

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: One tuple per transaction
Дата
Msg-id 200503121405.20943.josh@agliodbs.com
обсуждение исходный текст
Ответ на One tuple per transaction  ("Tambet Matiisen" <t.matiisen@aprote.ee>)
Ответы Re: One tuple per transaction
Список pgsql-performance
Tambet,

> In one of our applications we have a database function, which
> recalculates COGS (cost of good sold) for certain period. This involves
> deleting bunch of rows from one table, inserting them again in correct
> order and updating them one-by-one (sometimes one row twice) to reflect
> current state. The problem is, that this generates an enormous amount of
> tuples in that table.

Sounds like you have an application design problem ...  how about re-writing
your function so it's a little more sensible?

--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: "Tambet Matiisen"
Дата:
Сообщение: One tuple per transaction
Следующее
От: "Tom Pfeifer"
Дата:
Сообщение: Index use and slow queries