I have a table that contains temporary data which uses a column to store the expiration date/time. What is the best approach to periodically clean out expired records in MVC3?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using SQL Server, then I would highly recommend Creating a Job in your Sql Server. Any data changes that do not require user input, should be the job of the data store. If down the road some other application needs the same data, you can be assured that the records will be cleaned even if the website is down for any reason.