If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Rudy, care to comment or critique?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-08, 20:09
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,732
Rudy, care to comment or critique?

One of my coworkers came up with this:
http://foremanbob.*************/2008/...-in-mysql.html

What are your thoughts about doing this in a MySql environment, or using the methods he shows?
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #2 (permalink)  
Old 03-17-08, 20:40
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
first of all, and most importantly, i am flattered that you would ask me for my opinion

secondly--and i hope this isn't too much of a disappointment-- i have no idea what this would be used for

i wonder if i could appeal to your mercy and ask for forgiveness for my total ineptitude at understanding what you DBAs get so excited about
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-17-08, 22:56
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
I like the general idea, but I have some reservations.

First of all, this approach relies on MySQL triggers and the blog doesn't mention if the application tests to see if this MySQL engine accepts the declaration of triggers or if it tests to see if a declared trigger will actually fire and do what you expect. This trips me up on a regular basis, since different MySQL versions may not accept the declaration of a trigger, and at least some of the MySQL versions that I have to support will allow you to define a trigger that they will never execute. Programs can assume much faster than people can, and we all know what happens when people assume!

If I were to use this method of archiving, I'd suggest two changes. First, I'd have the shadow table created by one executable, and the data copy from production to shadow done by a second executable. Second, I'd use a date column for notating the deletion because that would offer me a great deal more useful information for what I perceive to be very little cost.

In general, I like the idea though.

-PatP
Reply With Quote
  #4 (permalink)  
Old 03-18-08, 00:42
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,732
With my method, each production table holds a modified timestamp and records the connection that modified it. The archive table would have the same columns, making a timestamp column for deletion redundant. But it appears my colleague left this off of his post.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On