MySQL Forums
Forum List  »  Partitioning

Re: Hash/key Partition by something other than PK
Posted by: Rick James
Date: August 24, 2010 11:59PM

Lots of people are surprised when PARTITION fails to provide significant speed benefits.

PARTITIONing on the PRIMARY KEY tends to be useless (for performance). It's like taking the top layer of the BTree for the PK and turning it into a bunch of tables.

PARTITIONing on some other field, or even a secondary field in the PK _can_ give you some perf benefits. Roughly speaking, this gives you a second "clustered" index.

You should not consider PARTITIONing unless you have (or plan to have) at least 100K rows.

I cannot advise further without seeing all the SELECTs on the table.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Hash/key Partition by something other than PK
1585
August 24, 2010 11:59PM


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.