Hello all of you,
There are multiple big sized tables in our production DB i.e. 1M+ records in size. As the data in these tables ages, it becomes less relevant to the system. We are looking to employ a simple daily bulk DELETE statement:
DELETE FROM t WHERE time > (now-14 days);
OPTIMIZE t;
We are considering innodb's transactions and locking. Please tell me if this is the best way to do this? Thanks in advance.
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --