Re: Table UPDATE is too slow - Mailing list pgsql-performance

From Marinos J. Yannikos
Subject Re: Table UPDATE is too slow
Date
Msg-id 413BA104.1040508@geizhals.at
Whole thread Raw
In response to Table UPDATE is too slow  (Ron St-Pierre <rstpierre@syscor.com>)
Responses Re: Table UPDATE is too slow
List pgsql-performance
Ron St-Pierre wrote:

> We have a web based application with data that is updated daily. The
> biggest bottleneck occurs when we try to update
> one of the tables. This table contains 58,000 rows and 62 columns, and
> EVERY column is indexed.

Have you thought of / tried using 2 separate databases or tables and
switching between them? Since you seem to be updating all the values, it
might be a lot faster to re-create the table from scratch without
indexes and add those later (maybe followed by a VACUUM ANALYZE) ...

That said, I'm not entirely sure how well postgres' client libraries can
deal with tables being renamed while in use, perhaps someone can shed
some light on this.

Regards,
  Marinos
--
Dipl.-Ing. Marinos Yannikos, CEO
Preisvergleich Internet Services AG
Obere Donaustraße 63/2, A-1020 Wien
Tel./Fax: (+431) 5811609-52/-55

pgsql-performance by date:

Previous
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: fsync vs open_sync
Next
From: Kevin Barnard
Date:
Subject: Re: Table UPDATE is too slow