MySQL Forums
Forum List  »  Partitioning

Partitioning Limitations
Posted by: Premal Shah
Date: September 17, 2009 07:50PM

I was trying to create a partition on a table which has 100 million rows and it keeps growing every day. I have an auto incrementing primary key on this table since this is a many to many relation table. I have a unique index (container_type_id, media_type_id). There are only a handful of media_type_id in this table (arnd 15). Now, its kinda impossible to create a partition on media_type_id since its not a part of the primary key. This is a huge huge limitation. I want to understand from the mysql crew as to why this is a limitation. Micrsoft SQL server does not have it. I am almost sure Oracle does not have it. Why does mysql have it. We are using django as our development framework. Django does not support multi-column primary keys. Even if it did, it does not make sense to make the primary key a composite of the auto-incrementing column and the media_type_id. I am not venting for the sake of it, but would like to understand why?

Thanx.



Edited 1 time(s). Last edit at 09/18/2009 11:59AM by Premal Shah.

Options: ReplyQuote


Subject
Views
Written By
Posted
Partitioning Limitations
6276
September 17, 2009 07:50PM
2748
September 18, 2009 11:11PM
2545
September 21, 2009 02:59AM
2694
September 22, 2009 08:28AM
2532
September 27, 2009 10:27PM
2584
September 27, 2009 10:47PM
2747
October 03, 2009 02:43AM
2751
October 03, 2009 06:03PM


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.