I have two tables A and B.Table A consists of status and created timestamp.Table B stores actions taken on Table A. (Every day at least hundred thousand records get stored into Table A).
I have to update status in table A if timestamp of the particular row doesn't belong to last week and insert the particular action in table B.
What are the best practices to solve this problem?
DO i have to run mysql script cron jobs or through java program(we use java in our project)?