MySQL Forums
Forum List  »  InnoDB

Re: disable undo buffer for delete query
Posted by: Jesús Uzcanga
Date: May 07, 2018 08:27AM

You have to LIMIT your delete query.

DELETE FROM mybase.mytable WHERE condition1='xxx' AND condition2=222 LIMIT 50000

You can also ORDER BY your DELETE function.

In my example, I set 50.000 rows each time but you can set yours depending of your data.

If too many rows to delete (too many DELETE executions) you can create a bash or shell script with a while loop to do it.

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: disable undo buffer for delete query
781
May 07, 2018 08:27AM


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.