pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guido Neitzer <guido.neitzer@pharmaline.de>
To: postgres performance list <pgsql-performance@postgresql.org>
Cc: Alex Wang <alex@alexwang.com>
Subject: Re: VERY slow after many updates
Date: Sat, 19 Nov 2005 13:18:19 +0100
Message-ID: <AC098147-E4DC-4313-AFB3-196F1B81B96E@pharmaline.de> (raw)
In-Reply-To: <005201c5ed01$7f15c310$0200a8c0@alexxp>
References: <002601c5ecdd$503279e0$0200a8c0@alexxp>
	<1132398732.10890.480.camel@coppola.muc.ecircle.de>
	<005201c5ed01$7f15c310$0200a8c0@alexxp>

On 19.11.2005, at 13:05 Uhr, Alex Wang wrote:

> Yes, it's a "queue" table. But I did not perform many insert/delete  
> before it becomes slow. After insert 10 records, I just do get/ 
> update continuously.

When PostgreSQL updates a row, it creates a new row with the updated  
values. So you should be aware, that the DB gets bigger and bigger  
when you only update your rows. Vacuum full reclaims that used space.

The concepts are described in detail in the manual in chapter 12.

cug

-- 
PharmaLine Essen, GERMANY and
Big Nerd Ranch Europe - PostgreSQL Training, Dec. 2005, Rome, Italy
http://www.bignerdranch.com/classes/postgresql.shtml

Attachments:

  smime.p7s (application/pkcs7-signature, 2.4K) download

view thread (7+ messages)  latest in thread

Message-ID: <AC098147-E4DC-4313-AFB3-196F1B81B96E@pharmaline.de>
Permalink:  ../AC098147-E4DC-4313-AFB3-196F1B81B96E@pharmaline.de/
Also on:    postgresql.org/message-id/AC098147-E4DC-4313-AFB3-196F1B81B96E@pharmaline.de

 · 

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: guido.neitzer@pharmaline.de, alex@alexwang.com
  Subject: Re: VERY slow after many updates
  In-Reply-To: <AC098147-E4DC-4313-AFB3-196F1B81B96E@pharmaline.de>
  References: <002601c5ecdd$503279e0$0200a8c0@alexxp> <1132398732.10890.480.camel@coppola.muc.ecircle.de> <005201c5ed01$7f15c310$0200a8c0@alexxp> <AC098147-E4DC-4313-AFB3-196F1B81B96E@pharmaline.de>

* 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