MySQL Forums
Forum List  »  Partitioning

Re: Key Partition Performance Measurement
Posted by: Rick James
Date: May 28, 2010 11:39PM

It is usually not useful to partition on the first field in the PRIMARY KEY.

If "select * from UserUsage where Msisdn=<number> order by Date desc limit 7" is your primary query, then a non-partitioned table with
INDEX(Msisdn, Date)
is optimal. (Indeed, that is your PRIMARY KEY).

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Key Partition Performance Measurement
1772
May 28, 2010 11:39PM


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.