Skip site navigation (1) Skip section navigation (2)

Re: Deletes hurt

From: "Chris Hoover" <revoohc(at)gmail(dot)com>
To: "Jim Nasby" <decibel(at)decibel(dot)org>
Cc: "pgsql-admin(at)postgresql(dot)org Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Deletes hurt
Date: 2007-05-31 19:10:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Just curious, what sort of field do they use to mark the rows?  I'm assuming
a timestamp since it would half to be part of the primary key, or am I way
off?  This has really gotten me thinking about how I might implement this in
my database.



On 5/31/07, Jim Nasby <decibel(at)decibel(dot)org> 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.
> --
> Jim Nasby                                            jim(at)nasby(dot)net
> EnterpriseDB      512.569.9461 (cell)
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

In response to


pgsql-admin by date

Next:From: Paul LambertDate: 2007-05-31 22:42:04
Subject: Re: Deletes hurt
Previous:From: Jonah H. HarrisDate: 2007-05-31 18:54:54
Subject: Re: Deletes hurt

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group