in reply to Version Control in Database Applications
I think I have an idea for an implementation that would be both easy on queries and on updates. Basically, instead of using an INT column for my ids I'd use a VARCHAR. Then the current version of every object is just the id number, say "1024". When I create a new version I append the version number creating a new id - "1024,1" for version 1 for example. This makes creating a new version as simple as cloning records in all affected tables under the new id. SELECTs and JOINs stay simple since selecting on the id as-is always gets you the current version.
So, how does that sound? Am I missing something that will cause me premature hair-loss later?
-sam
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Version Control in Database Applications
by cowens (Beadle) on Jun 10, 2002 at 20:01 UTC | |
by samtregar (Abbot) on Jun 10, 2002 at 20:20 UTC | |
by perrin (Chancellor) on Jun 11, 2002 at 01:18 UTC | |
by samtregar (Abbot) on Jun 11, 2002 at 02:23 UTC | |
by perrin (Chancellor) on Jun 11, 2002 at 03:18 UTC | |
|