Skip navigation links

MySQL Forums :: Partitioning :: How to handle secondary keys in partitioning?


Advanced Search

Re: How to handle secondary keys in partitioning?
Posted by: John Smith ()
Date: May 04, 2010 04:30PM

I didn't phrase my question very well.

I understand that MySQL will query each non-pruned partition automatically.

My question was more about how effective partitioning would be if some of my queries will involve all partitions.

So I partition my table into N partitions by recipient_id. And for some queries I want to "select * where sender_id=1 ordered by date".

For a non-partitioned table the above query would only require reading from 1 index, assuming I have an index on (sender_id, date). Also no sorting is required because the index is already sorted the right way.

For a partitioned table the same query would require reading from all N indexes and then sort the results, right?

For cases like that would partitioning actually reduce performance compared to a non-partitioned table? If so, what type of performance degradation would we will here?

Options: ReplyQuote


Subject Views Written By Posted
How to handle secondary keys in partitioning? 2440 John Smith 05/04/2010 12:46AM
Re: How to handle secondary keys in partitioning? 1411 Mattias Jonsson 05/04/2010 01:29PM
Re: How to handle secondary keys in partitioning? 1210 John Smith 05/04/2010 04:30PM
Re: How to handle secondary keys in partitioning? 1434 Mattias Jonsson 05/05/2010 02:20AM
Re: How to handle secondary keys in partitioning? 1365 Rick James 05/06/2010 12:04AM
Re: How to handle secondary keys in partitioning? 1545 Mattias Jonsson 05/06/2010 03:23PM
Re: How to handle secondary keys in partitioning? 1190 John Smith 05/06/2010 10:50PM
Re: How to handle secondary keys in partitioning? 1341 Mattias Jonsson 05/07/2010 02:38AM
Re: How to handle secondary keys in partitioning? 1268 John Smith 05/08/2010 05:31PM
Re: How to handle secondary keys in partitioning? 1381 Mattias Jonsson 05/09/2010 04:37AM
Re: How to handle secondary keys in partitioning? 1257 John Smith 05/09/2010 12:41PM
Re: How to handle secondary keys in partitioning? 1172 Mattias Jonsson 05/09/2010 01:23PM
Re: How to handle secondary keys in partitioning? 1281 Mattias Jonsson 05/12/2010 05:29AM
Re: How to handle secondary keys in partitioning? 1719 John Smith 05/06/2010 12:34AM


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.