Jump to content

Best method to update rows with cron job


stopblackholes

Recommended Posts

I want to run a cron job to update rows every minute. Now the table im updating will probably grow very large in size.

 

 

Should i

 

A. Create a second table to store the data that has not been updated then have the cron job  query that table for the data then update the main table with the related key and afterwards delete it from temp table?

 

B. Or create a extra field in the main table that stores a value that says it needs updating or has been updated and query then update?

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.