MySQL Forums
Forum List  »  InnoDB

Re: Show innodb engine status tuning db server
Posted by: Rick James
Date: September 29, 2013 08:40AM

A large table without an adequate index can take a long time to UPDATE or DELETE. That makes the transaction longer, and may 'lock' more of the table than intended.

Having several operations in a single transaction is reasonable and normal. Putting too much into a single transaction makes trouble. Doing lengthy things (such as waiting for a user to respond) in the transaction can lead to hitting "lock wait timeout".

Design each transaction to have all the statements it needs, but no more.

Going back to the original question... There is no tunable parameter that can solve your problem.

You showed us one query:
UPDATE tblMst SET ... WHERE mSN='BAC1014'
That will lock all the rows having mSN='BAC1014', and the index is helpful:
KEY `mSN` (`mSN`)
But the other queries in this transactions and the conflicting transaction are also involved.

Options: ReplyQuote


Subject
Views
Written By
Posted
2476
September 15, 2013 09:37AM
Re: Show innodb engine status tuning db server
950
September 29, 2013 08:40AM


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.