Re: Update command too slow

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Update command too slow
Date: 2005-02-05 14:59:40
Message-ID: 87acqjkq77.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Venkatesh Babu <venkatbabukr(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2005-02-05 15:00:18 Re: is this index bloat?
Previous Message deeps1 2005-02-05 11:54:32 How I can add new function writing on C under Win32 for PostgreSQL v 8.0.1