Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To store every record change or not?
Message
 
 
À
20/03/2011 11:35:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01504208
Message ID:
01504232
Vues:
72
>I was wondering what others here think about storing changes to every record into some kind of audit trail table? Is this a good and reasonable design or waste of database storage?
>
>Hi, Dmitry,
>
>As Walter mentioned, many applications have requirements to track and store changes - to see "whodunnit and when", and also to re-create history.
>
>Here's a little story - several years ago a report I developed suddently went haywire....and I spent hours looking everyone except the one place I should have looked. The DBA (of all people) changed a critical configuration to demonstrate something to someone, and then didn't change it back. There was no history to prove he touched it (except he confessed later). An audit trail would have permitted me to query the log for all changes since the last day I knew the report was running properly.
>
>Audit trails are like insurance....you pay something for quite a long time, but when you need it, you NEED it.
>
>So in any serious production application, I'll turn your original question around (and it will be a rhetorical question) - is there any good reason NOT to store changes? :)

Kevin, very good point and rhetorical question. I am now implementing in my base BIZ class saving to audit trail table for all transactions. The nice thing is I figured that if the audit trail table becomes too big, I can truncate it, say every 2-3 years (saving it first to the backup).
Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform