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:
http://dev.mysql.com/doc/refman/5.1/en/alter-table-partition-operations.html

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.

Regards
Mattias Jonsson, MySQL partitioning developer.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Move from unpartitioned database to partitioned database
1828
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.