MySQL Forums
Forum List  »  InnoDB

Re: Delete statement taking more time for deleting 1 million records
Posted by: Rick James
Date: October 26, 2014 10:45AM

> Use the "between and" condition in where clause instead of a < or > . ( B+tree works well in a range condition).

The optimizer is smart enough to do < and > with a "range" scan.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Delete statement taking more time for deleting 1 million records
1325
October 26, 2014 10:45AM


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.