Skip navigation links

MySQL Forums :: Optimizer & Parser :: Identical servers different plan for the same query


Advanced Search

Re: Identical servers different plan for the same query
Posted by: Eric Coll ()
Date: April 10, 2012 03:28PM

I think that the general solution to this type of problem is to increase the number of page sample in the statistics.

This settings worked for me:
innodb_stats_sample_pages = 32
innodb_stats_on_metadata = OFF

I have several problems across the database where the statistics and query plans were incorrect, and this setting has solved them all.

Options: ReplyQuote


Subject Views Written By Posted
Identical servers different plan for the same query 1778 Eric Coll 04/07/2012 01:20AM
Re: Identical servers different plan for the same query 782 Eric Coll 04/07/2012 09:55AM
Re: Identical servers different plan for the same query 778 irek kordirko 04/07/2012 02:54PM
Re: Identical servers different plan for the same query 1006 Rick James 04/08/2012 12:20PM
Re: Identical servers different plan for the same query 1038 Eric Coll 04/09/2012 10:24AM
Re: Identical servers different plan for the same query 711 Eric Coll 04/09/2012 10:35AM
Re: Identical servers different plan for the same query 710 Eric Coll 04/09/2012 10:37AM
Re: Identical servers different plan for the same query 751 Eric Coll 04/09/2012 10:42AM
Re: Identical servers different plan for the same query 705 Eric Coll 04/10/2012 03:28PM
Re: Identical servers different plan for the same query 771 Rick James 04/10/2012 10:29PM
Re: Identical servers different plan for the same query 749 Eric Coll 04/11/2012 10:05AM
Re: Identical servers different plan for the same query 800 Rick James 04/12/2012 08:56AM
Re: Identical servers different plan for the same query 769 Eric Coll 04/12/2012 03:23PM
Re: Identical servers different plan for the same query 779 Rick James 04/13/2012 03:49PM


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.