MySQL Forums
Forum List  »  Partitioning

Re: Move from unpartitioned database to partitioned database
Posted by: Mattias Jonsson
Date: March 20, 2012 01:21AM

First you must think of the reasons for adding partitioning. It is not a magic bullet, it has its pro's and con's.

1) ALTER TABLE t PARTITION BY .... That will partition your table by copying all data, like the general ALTER TABLE.
For more info, look at the manual:

2) -

3) If you thinking about range partitioning by date/auto increment, so yes. You can create an EVENT to do it for you.

4) The indexes is partitioned along with the data (so if you partition the table, also the indexes will be partitioned). So there is no need of rebuilding indexes after adding/dropping a partition.

Mattias Jonsson, MySQL partitioning developer.

Options: ReplyQuote

Written By
Re: Move from unpartitioned database to partitioned database
March 20, 2012 01:21AM

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.