Jump to content

Method for Removing MySQL rows older than x dates...


guyfromfl

Recommended Posts

I just have a general question about when other programmers remove rows older than say a year old....

 

Do most of you:

1) set up a CRON job to run daily at 3:00am

2) Add a routine at login for each user

3) Add a routine when a user moves into a certain portion of the application

4) A maintenance routine that an administrator manually has to envoke

 

Or is there another way...I have done some research but most of the things google has showed me is the how not when to do this...

I just have a general question about when other programmers remove rows older than say a year old....

 

Do most of you:

1) set up a CRON job to run daily at 3:00am

2) Add a routine at login for each user

3) Add a routine when a user moves into a certain portion of the application

4) A maintenance routine that an administrator manually has to envoke

 

Or is there another way...I have done some research but most of the things google has showed me is the how not when to do this...

 

I'd say the best would be 1 or 4.. 1 would be the best choice for me tho :)

Russell,

 

Thanks,  I was thinking about doing a CRON job, but I was just wondering what you guys had to say...

 

I think I'm going to start on that, instead of lurking around in a forum on the clock... ha

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.