Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
deleting data from a DB
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Rosenblatt  
View profile  
 More options Sep 11, 7:20 am
From: Tim Rosenblatt <t...@timrosenblatt.com>
Date: Fri, 11 Sep 2009 07:20:32 -0400
Local: Fri, Sep 11 2009 7:20 am
Subject: deleting data from a DB

Hey all, I read this article on deleting data from a database, and it seemed
worth passing along

http://www.infoq.com/news/2009/09/Do-Not-Delete-Data

We had a discussion on this at standup yesterday, and it was suggested that
it might be worth tracking the reason why a record was deleted (like a state
machine), as well as a deleted_at timestamp.

Thoughts?

--
Tim Rosenblatt
http://www.timrosenblatt.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Blake  
View profile  
 More options Sep 11, 8:58 am
From: Justin Blake <jbl...@gmail.com>
Date: Fri, 11 Sep 2009 05:58:35 -0700 (PDT)
Local: Fri, Sep 11 2009 8:58 am
Subject: Re: deleting data from a DB
I like what the article says about "giving a correct interpretation of
user’s intention". I don't know if that warrants two fields (i.e.
deleted_at and reason), or just one context-sensitive field (e.g.
canceled_at). I guess in some cases there could be multiple reasons
for "deleting" something, but I think that would be rare.

But having a consistently named field like deleted_at makes it easy
for something like ActiveRecord to handle the exclusions
behind-the-scenes without any per-model config. But at the same time
having a semantic name for your field is... semantic.

That was a very long way to say I don't know.

--
Justin Blake
http://blog.adsdevshop.com/

On Sep 11, 7:20 am, Tim Rosenblatt <t...@timrosenblatt.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google