Re: Update command too slow - Mailing list pgsql-general

From Greg Stark
Subject Re: Update command too slow
Date
Msg-id 87acqjkq77.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Update command too slow  (Venkatesh Babu <venkatbabukr@yahoo.com>)
List 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 by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: How many connections now ?
Next
From: Christopher Browne
Date:
Subject: Re: is this index bloat?