pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Jim Nasby <decibel@decibel.org>
Cc: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: Re: Deletes hurt
Date: Thu, 31 May 2007 09:23:01 -0700
Message-ID: <465EF665.7040105@commandprompt.com> (raw)
In-Reply-To: <734907A8-F30D-4924-8C97-30D2898CA43C@decibel.org>
References: <734907A8-F30D-4924-8C97-30D2898CA43C@decibel.org>

Jim Nasby wrote:
> I'm currently doing EnterpriseDB training at a well-known entertainment 
> company. I found out something yesterday that I thought the community 
> would find interesting...
> 
> In their game (MMORPG) databases, they have fields on all their tables 
> that indicate whether a record has been deleted or not. I've seen this 
> done before, typically for data retention reasons. But they had a daily 
> process that went through each night and physically deleted the records 
> that had been marked as deleted.
> 
> The reason they weren't actually deleting rows real-time is because it 
> cost to much in Oracle to do so. My guess is it's because Oracle has to 
> copy the entire deleted row to the undo log as part of the delete, which 
> would be pretty costly.

Right. Where we just mark the row as dead and have to vacuum. We just 
delay the pain ;).

Joshua D. Drake


> -- 
> Jim Nasby                                            jim@nasby.net
> EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
> 


-- 

       === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
              http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/




view thread (8+ messages)  latest in thread

Message-ID: <465EF665.7040105@commandprompt.com>
Permalink:  ../465EF665.7040105@commandprompt.com/
Also on:    postgresql.org/message-id/465EF665.7040105@commandprompt.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, decibel@decibel.org
  Subject: Re: Deletes hurt
  In-Reply-To: <465EF665.7040105@commandprompt.com>

* 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