MySQL Forums
Forum List  »  Optimizer & Parser

Re: Simple query spending too much time in 'statistics' state without reason
Posted by: Jørgen Løland
Date: August 24, 2012 06:24AM

Hi Vincent,

Depending on what you mean by "long time" and how many values there are in the IN(), you may have hit a problem with record estimation (it does two index dives per range, i.e, value) in the range optimizer. Take a look here and see if this could be the case. If not: what Rick said :-)

Hope this helps,
Jørgen Løland
Software Engineer, MySQL, Oracle
jorgenloland.blogspot.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Simple query spending too much time in 'statistics' state without reason
6586
August 24, 2012 06:24AM


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.