morgon has asked for the wisdom of the Perl Monks concerning the following question:
I hope I am not abusing this forum too much as my problem is not strictly a Perl-problem but I hope on some feedback anyway.
We are currently designing a system where we will persist Moose-based object in an Oracle-database (probably using DBIx::Class), but we do not only want to store the current state of the objects but also keep a history of their previous states.
The question now is how to do this.
One of the approaches to such problems I have seen consists in adding some "version"-column to all the tables holding versionized data that gets incremented with every new version, the current version then being the one with the highest version-value. Current data can then be made available via a view that suppresses all the historic rows.
Is that the way to do it or are there better ways?
Assuming this is the way to go, I can see several options of implementing it, e.g.
- implement it yourself in Perl
- do with triggers in PL/SQL
- use Oracle Workspace Manager
What would be the different pros and cons?
I would like to avoid being locked into Oracle technology, but as I do not realistically expect this application ever to be migrated to something else I could accept a lock-in to proprietary technology if it makes my live easier...
In particular I have never used the Workspace Manager, but it could be exactly what we need - is there anyone that could share his experiences?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: database historisation
by ELISHEVA (Prior) on Apr 16, 2009 at 22:40 UTC | |
|
Re: database historisation
by ig (Vicar) on Apr 16, 2009 at 21:23 UTC | |
by dHarry (Abbot) on Apr 17, 2009 at 06:43 UTC | |
|
Re: database historisation
by planetscape (Chancellor) on Apr 17, 2009 at 06:09 UTC | |
|
Re: database historisation
by roboticus (Chancellor) on Apr 17, 2009 at 13:36 UTC | |
by morgon (Priest) on Apr 17, 2009 at 14:38 UTC | |
by roboticus (Chancellor) on Apr 18, 2009 at 13:50 UTC | |
|
Re: database historisation
by dHarry (Abbot) on Apr 17, 2009 at 06:42 UTC | |
|
Re: database historisation
by bduggan (Pilgrim) on Apr 17, 2009 at 20:26 UTC |