Hi
Basically I have table TABLE_1 with number of fields being updated all the time. Once a month I run cron job and all the records in TABLE_1 become not needed for my next cron job. Now I need to somehow back up all used records and prepare my TABLE_1 for new updates. Old records are needed mainly for stats purposes. What from the following would be the best practice to do this:
Thank you for your input.
Basically I have table TABLE_1 with number of fields being updated all the time. Once a month I run cron job and all the records in TABLE_1 become not needed for my next cron job. Now I need to somehow back up all used records and prepare my TABLE_1 for new updates. Old records are needed mainly for stats purposes. What from the following would be the best practice to do this:
- Create new table identical to TABLE_1 and copy all the used records into it and than delete all the records from TABLE_1 OR
- Include an extra field to mark record as used so that next cron job can skip it OR
- something else
Thank you for your input.
Comment