Dear all,
We have build a CMS platform which is based on SQL server 2012 tables structure hosted in Azure.
We have build on top of this some REST API method in order to access data from any type of client application.
The issues we need to solved now is what his the best way to track deleted records in order that client application gets informed through web service about deleted data from our CMS.
We were thinking of 2 path actually :
- having a kind of Ghost table for each of our real table where deleted records will be inserted into ( physical delete ). This would mean adding as many Ghost tables as we have production tables
- Adding a IsDeleted flag to each of our table which will be set to true when a record is deleted from our CMS ( logical delete ). This would means adding an IsDelete field to each of our tables, create and update all our store procedure and web services in order to taken in account that new filter criteria to fetch our records. Quite huge job
Will there be any other approach ?
We are looking the best solution with minimum impact on our current solution
reagards
Your knowledge is enhanced by that of others.