MySQL Forums
Forum List  »  Optimizer & Parser

Re: Statistics used by optimizer.
Posted by: Rakshit Trivedi
Date: September 01, 2009 06:30AM

Hi,

Got your point. Thanks for the quick reply. I had one more question regarding the index access or you can say the no. of rows estimated for InnoDB engine.

As explained by you, for InnoDB engines,it probes 10 random spots in the table whenever you 'open' the table. So how this random probing works? I mean to ask how the no of rows to be read are estimated using these 10 different probes?

Moreover, is this probing done for each and every query. I mean how this probing works when we explain the same query with different constants (values)?

I event went through the open source code but could not exactly get answer to these questions. So it would be great help if you can locate me in the code wherein I can find this implementation.

Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
6366
August 28, 2009 07:32AM
2646
August 29, 2009 01:11PM
Re: Statistics used by optimizer.
2500
September 01, 2009 06:30AM
2451
September 01, 2009 07:44AM
2479
September 01, 2009 02:51PM
2280
September 01, 2009 09:59PM
2410
September 04, 2009 11:00AM
2407
September 04, 2009 07:37PM


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.