Let's have a simple table of products. Each produch has its unique ID and category. Users often search by category so I want to partition products by category. Each category in one partition e.g.
How do I do it? Because of course I have a primary key on my ID column and need my ID unique. Not unique in each category.
However partitiong has this limitation that "every unique key on the table must use every column in the table's partitioning expression".
Well, doesn't this make partitioning a bit useless? Or am I missing something? What should I do?
http://dev.mysql.com/doc/refman/5.1/en/partitioning-limitations-partitioning-keys-unique-keys.html