Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0801C9FBA0B for ; Thu, 31 May 2007 13:22:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 69015-02 for ; Thu, 31 May 2007 13:22:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 0BD219FBA2B for ; Thu, 31 May 2007 13:22:21 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l4VGMDdP000411; Thu, 31 May 2007 09:22:18 -0700 Message-ID: <465EF665.7040105@commandprompt.com> Date: Thu, 31 May 2007 09:23:01 -0700 From: "Joshua D. Drake" User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: Jim Nasby CC: "pgsql-admin@postgresql.org Admin" Subject: Re: Deletes hurt References: <734907A8-F30D-4924-8C97-30D2898CA43C@decibel.org> In-Reply-To: <734907A8-F30D-4924-8C97-30D2898CA43C@decibel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 31 May 2007 09:22:18 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/337 X-Sequence-Number: 25657 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/