pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Piotr Kołaczkowski <P.Kolaczkowski@elka.pw.edu.pl>
To: pgsql-performance@postgresql.org
Subject: Re: Update table performance
Date: Tue, 7 Aug 2007 15:44:17 +0200
Message-ID: <200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl> (raw)
In-Reply-To: <435532.80672.qm@web32210.mail.mud.yahoo.com>
References: <435532.80672.qm@web32210.mail.mud.yahoo.com>

Hi,

update valley set test='this is a test'

Such query updates ALL of your records in the table. 
5 million records * 47 fields - that can be several gigabytes of data.
The system has to scan that gigabytes to change every record. This is a huge 
task. Try vacuuming and see if it helps. It can help a lot, if you perform 
such 'whole table updates' often.

Best regards,
Piotr Kolaczkowski



view thread (19+ messages)  latest in thread

Message-ID: <200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl>
Permalink:  ../200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl/
Also on:    postgresql.org/message-id/200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: P.Kolaczkowski@elka.pw.edu.pl
  Subject: Re: Update table performance
  In-Reply-To: <200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl>
  References: <435532.80672.qm@web32210.mail.mud.yahoo.com> <200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox