I started an ASP.NET project with Entity Framework 4 for my DAL using SQL Server 2008. In my database, I have a Users table that should have many rows (for example, 5.000.000).
Initially, I had a table of my users designed as follows:
Id uniqueidentifier Name nvarchar(128) Password nvarchar(128) Email nvarchar(128) Role_Id int Status_Id int
I changed the table and added the MarkedForDeletion column:
Id uniqueidentifier Name nvarchar(128) Password nvarchar(128) Email nvarchar(128) Role_Id int Status_Id int MarkedForDeletion bit
Should I delete every object every time or use the MarkedForDeletion attribute. This means that I need to update the value and at some point in time delete all users with the value set to true using a stored procedure or something like that.
Will updating the MarkedForDeletion attribute match the delete operation?
Sorin antohi
source share