Re: Select doesn't use the different partitions?
Partition pruning on datetime columns is only supported for the functions TO_DAYS() and YEAR(). It is stated in the manual
http://dev.mysql.com/doc/refman/5.1/en/partitioning-pruning.html
I have submitted a feature request to add DAY() and MONTH() to this list. Not sure if it will every get implemented.
http://bugs.mysql.com/bug.php?id=45350
I got round this by adding an additional column to store month as an integer value. It makes the table slight bigger and the queries a bit more complicated, but I couldn't think of another way to do it.
Subject
Views
Written By
Posted
3703
July 28, 2009 01:54AM
Re: Select doesn't use the different partitions?
2121
August 14, 2009 09:16AM
2267
August 15, 2009 11:11PM
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.