Результаты (
английский) 1:
[копия]Скопировано!
I want to know how a new partitioned table will accommodate future years?I'm fairly sure, according to the 5.1 documentation, that you'll have to alter table add partition to handle future years.I also want to know whether I need to make changes to the table name in the existing queries and replace the table name with the new partitioned table nameAre you needing to use the ' old ' table after you get this set up? If not, I would follow these steps:Create the partitioned table as you want it, under table name ' mytable_new 'INSERT INTO mytable_new SELECT * FROM mytableRENAME TABLE mytable TO mytable_oldRENAME TABLE mytable_new TO mytableThis should avoid the need to alter your queries. If your table is extremely write-heavy (I assume it must be if you have the need to partition it!), you will probably want to have a maintenance timeframe where it's offline until the operation is complete.Hope this helps.
переводится, пожалуйста, подождите..