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 > General > Database Concepts & Design > Options for supporting live and WIP versions of same data?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-09, 17:33
e-i-s e-i-s is offline
Registered User
 
Join Date: Jun 2009
Posts: 1
Options for supporting live and WIP versions of same data?

I'm working on a design for a product where certain entities in the schema will have multiple instances of the data in different states of approval or ongoing revision.

One example would be a database entity that represents a 'policy'(i.e. standing instructions to complete some duty). At any one time the product might have a version of the 'policy' that has been published and is available for public viewing, and at the same time a revised copy of the orginal policy that is being updated by its authors. Only the policy authors would be able to see both public and revised instances. Once the revisions are complete the new version would be made public, and the earlier version retired.

I'm wondering how best to design this type of data pattern in my schema.

Should I employ separate tables for the approved and being revised instances? Or should both instances go into the same table, and have extra fields to distinguish on version/state?

In reality the logical instance covers multiple tables, as there's a lot of subordinate data to store.

Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 06-18-09, 22:58
AnanthaP AnanthaP is offline
Registered User
 
Join Date: May 2009
Location: India
Posts: 62
Separate tables means more to manage contiinuously. Easier to generate a next version number and copy the documents in the scope. You would use a flag to control access rights.

End
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