I discussed the best way to store a live dataset and a dataset project in a database. The live version is displayed on the website, and the project version works until it is ready for use. The model is relational and consists of many tables.
My current method is to have 2 databases, one for drafts and one for life. When you advertise data for life, SQL simply copies the data from the db project to live db.
This is good, but a little slower and seems dirty. And often, SQL must consider both sets of tables.
Another way would be to make the Live indicator as part of the key of each table, so I can keep both live and drafts in one table - and update the indicator so that the data is live. - I really do not sell on this idea.
I would be grateful if anyone has any other suggestions.
Um
source
share