Re: Best practices for deleting and restoring records - moving vs flagging

2005-08-12 Thread Arno Coetzee
Saqib Ali wrote: Hello All, What are best practices for deleting records in a DB. We need the ability to restore the records. Two obvious choices are: 1) Flag them deleted or undeleted 2) Move the deleted records to seperate table for deleted records. We have a complex schema. However the

Re: Best practices for deleting and restoring records - moving vs flagging

2005-08-12 Thread Bastian Balthazar Bux
Saqib Ali wrote: Hello All, What are best practices for deleting records in a DB. We need the ability to restore the records. Two obvious choices are: 1) Flag them deleted or undeleted 2) Move the deleted records to seperate table for deleted records. We have a complex schema.

Re: Best practices for deleting and restoring records - moving vs flagging

2005-08-12 Thread Arno Coetzee
Bastian Balthazar Bux wrote: We need to track the modification to the records too so the route has been to keep them all in a different, specular databases. If the real table look like this: CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `ts` timestamp NOT NULL default

Best practices for deleting and restoring records - moving vs flagging

2005-08-11 Thread Saqib Ali
Hello All, What are best practices for deleting records in a DB. We need the ability to restore the records. Two obvious choices are: 1) Flag them deleted or undeleted 2) Move the deleted records to seperate table for deleted records. We have a complex schema. However the the records that

Re: Best practices for deleting and restoring records - moving vs flagging

2005-08-11 Thread Nuno Pereira
Saqib Ali wrote: Hello All, What are best practices for deleting records in a DB. We need the ability to restore the records. Two obvious choices are: 1) Flag them deleted or undeleted 2) Move the deleted records to seperate table for deleted records. The first is what I like more. While in