MySQL Forums
Forum List  »  Optimizer & Parser

Re: how to tune for optimizer_search_depth?
Posted by: Rick James
Date: December 03, 2014 11:33PM

Use case 1 -- 99% of queries -- Leave it alone at 61.

Use case 2 -- multi-way self-join -- Set it to 1. This is often seen in Key-Value (EAH) schema design.

Let's see some of the queries, plus the SHOW CREATE TABLE for the relevant tables. It is likely that something else can be done to improve performance. Also, what version are you running. The latest versions have an improvement to the InnoDB statistics probes.

Options: ReplyQuote


Subject
Views
Written By
Posted
2373
December 03, 2014 12:13AM
Re: how to tune for optimizer_search_depth?
1516
December 03, 2014 11:33PM


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.