MySQL Forums
Forum List  »  Newbie

Re: Delete taking a long time to complete
Posted by: Rick James
Date: April 29, 2010 11:26PM

SET autocommit=1;
DELETE ...
DELETE ...
is two transactions.

BEGIN
DELETE ...
DELETE ...
COMMIT
is one transaction.

Can you explain why there is a rush to get the DELETEs done?

You can DELETE almost instantaneously if you PARTITION the data in such a way that ALTER PARTITION can lop off the old stuff.

Options: ReplyQuote


Subject
Written By
Posted
Re: Delete taking a long time to complete
April 29, 2010 11:26PM


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.