MySQL Forums :: Partitioning :: wrong output generate while using partitions


Advanced Search

Re: wrong output generate while using partitions
Posted by: Rick James ()
Date: December 17, 2014 11:27AM

> can you explain why index_merge is coming on partitioned table and not coming on non partitioned table?

No. Sounds like a bug in the code. A SELECT that touches multiple PARTITIONs has to gather results from the partitions and combine them. Perhaps in the case of index_merge, that "combining" occurs earlier -- during the index lookups.

> which require change in existing queries

5.7 will have a "Query Rewrite" feature that lets you do that without touching the code.

> create composite indexes

That is usually a better solution than depending on index_merge.

Options: ReplyQuote


Subject Views Written By Posted
wrong output generate while using partitions 1914 Shivam Patel 12/13/2014 07:56AM
Re: wrong output generate while using partitions 924 Rick James 12/14/2014 10:33PM
Re: wrong output generate while using partitions 893 Shivam Patel 12/16/2014 01:24AM
Re: wrong output generate while using partitions 945 Jonathan Stephens 12/16/2014 02:32AM
Re: wrong output generate while using partitions 969 Shivam Patel 12/16/2014 04:00AM
Re: wrong output generate while using partitions 879 Rick James 12/16/2014 04:28PM
Re: wrong output generate while using partitions 993 Shivam Patel 12/17/2014 07:20AM
Re: wrong output generate while using partitions 1003 Rick James 12/17/2014 11:27AM


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.