Re: Update command too slow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Venkatesh Babu <venkatbabukr(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Update command too slow
Date: 2005-02-04 16:52:15
Message-ID: 15128.1107535935@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Venkatesh Babu <venkatbabukr(at)yahoo(dot)com> writes:
> We have a table cm_quotastates which has exactly
> 4624564 rows and 25 columns and 9 indexes... Out of
> these, our code retrieves 75262 rows and modifies just
> one column in each row... but updating these to
> database is taking some significant time (around 20
> minutes)... Tried the following with the update

Any triggers or foreign keys on that table? Also, what PG version is
this? Are you doing this in a single UPDATE command, or 75262 separate
commands?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Victor Spång Arthursson 2005-02-04 16:52:45 Re: Help with strange join
Previous Message Teddy 2005-02-04 16:41:04 C++ Builder prob.