MySQL Forums
Forum List  »  Newbie

Re: How to delete millions of record in a loop
Posted by: Rick James
Date: November 17, 2016 06:08PM

Assuming your real question is about "how to delete lots of rows", see my blog on such:
http://mysql.rjweb.org/doc.php/deletebig
It discusses several techniques.
I prefer PARTITIONing. If that is not appropriate, then chunking, with the "loop" being in client code (PHP/Perl/...); Stored Procedures are a pain to debug.

Options: ReplyQuote




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.