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...

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.