Re: One tuple per transaction

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Tambet Matiisen" <t(dot)matiisen(at)aprote(dot)ee>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: One tuple per transaction
Date: 2005-03-12 22:05:20
Message-ID: 200503121405.20943.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Pfeifer 2005-03-13 05:40:47 Index use and slow queries
Previous Message Tambet Matiisen 2005-03-12 13:08:32 One tuple per transaction