MySQL Forums
Forum List  »  Optimizer & Parser

deleting approx. 180m records a month
Posted by: Nolan Rumble
Date: November 06, 2006 03:09PM

Hi,

I have an issue where I need to delete approximately 180 million records a month. I have a script which parses a log file, and imports the data into MySQL. My intention is to keep 3 months worth of log files in the database (approx. 600million records).

Is better to delete the records on a daily basis (in other words, the day which is 3 months behind from now) and run the optimize table query each day or is it better to delete the the records on a monthly basis (in other words, once i've finished importing month 4, delete month 1) and run the optimize query once a month? What would be the optimal way to go about doing this?

Thanks
Nolan

Options: ReplyQuote


Subject
Views
Written By
Posted
deleting approx. 180m records a month
3016
November 06, 2006 03:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.