I've got a huge table that I'm about to partition. It has a compound 4-element primary key. One of its element is record time, which is a good candidate to be the paritioning key. MySQL manual gives lots of examples where DATE field with RANGE YEAR is a very efficient partitioning key.
My problem is that I have timestamp instead of date. MySQL docs state that it is possible to use timestamp:
Beginning with MySQL 5.1.43, it is also possible to partition a table by RANGE based on the value of a TIMESTAMP column, using the UNIX_TIMESTAMP() function
but it doesn't say anything about performance. The question is: which of date, timestamp is going to be faster as a partitioning key? If DATE is better, I'm considering changing the primary key. I'm gonna divide all data across one-year partitions or half-year partitions.