MySQL Forums
Forum List  »  Performance

Re: innodb_stats_on_metadata, how does it affects query optimizer?
Posted by: Rick James
Date: March 13, 2009 08:00PM

Grrr... That sounds like an ill-thought-out variable.
http://bugs.mysql.com/bug.php?id=38189

ANALYZE TABLE might still do the stats gathering. But it suffers the same problem that exists when opening a table -- it does 10 random probes, which sometimes leads to wrong stats for query optimization.

I guess you could always do USE INDEX() or FORCE INDEX(), but that seems silly.

I would rather take my chances without the variable.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: innodb_stats_on_metadata, how does it affects query optimizer?
2173
March 13, 2009 08:00PM


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.