MySQL Forums
Forum List  »  InnoDB

Re: Lock wait timeout exceeded; try restarting transaction error - do I need a different index?
Posted by: Peter Brawley
Date: February 23, 2018 11:18AM

5k values with those three value pairs, that's an index selectivity problem.

Row constructor syntax doesn't always yield optimal index use. Did you try it without the row constructor? What is the Explain result on the query with and without the row constructor?

MySQL version? What is innodb_buffer_pool_size? RAM?



Edited 1 time(s). Last edit at 02/23/2018 11:20AM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Lock wait timeout exceeded; try restarting transaction error - do I need a different index?
746
February 23, 2018 11:18AM


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.