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 09, 2012 10:42AM

Answering the index questions:

The last_tiemstamp table and join are correct. This table register the latest snapshot per region. Basically, the most recent data for all accounts in that region will have the same timestamp.

The unique key is awful, agree, but I understand why it was done like that. The partitioned table requires a unique index and that was the only unique key. I'd have replaced have of the fields with a generated id or a hash, but that requires significant changes to the live db and the services that insert the data which are fairly complex.

Options: ReplyQuote


Subject Views Written By Posted
Identical servers different plan for the same query 1542 Eric Coll 04/07/2012 01:20AM
Re: Identical servers different plan for the same query 654 Eric Coll 04/07/2012 09:55AM
Re: Identical servers different plan for the same query 647 irek kordirko 04/07/2012 02:54PM
Re: Identical servers different plan for the same query 853 Rick James 04/08/2012 12:20PM
Re: Identical servers different plan for the same query 865 Eric Coll 04/09/2012 10:24AM
Re: Identical servers different plan for the same query 611 Eric Coll 04/09/2012 10:35AM
Re: Identical servers different plan for the same query 617 Eric Coll 04/09/2012 10:37AM
Re: Identical servers different plan for the same query 595 Eric Coll 04/09/2012 10:42AM
Re: Identical servers different plan for the same query 590 Eric Coll 04/10/2012 03:28PM
Re: Identical servers different plan for the same query 621 Rick James 04/10/2012 10:29PM
Re: Identical servers different plan for the same query 618 Eric Coll 04/11/2012 10:05AM
Re: Identical servers different plan for the same query 656 Rick James 04/12/2012 08:56AM
Re: Identical servers different plan for the same query 620 Eric Coll 04/12/2012 03:23PM
Re: Identical servers different plan for the same query 643 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.