I have a huge table (~500M rows), which I did not partition at the time of loading the data. If I create the partitions now, do I need to manually move the data from the master table to the child tables? Are there any better options.
0
votes
1 Answers
1
votes
It is an old question, but what I have done and planned is to:
- rename the big table
- create a copy of the original table with include all (to get tablestructure, indexes, ect from the original table),
- partition the new table (I cant alter the table now by list (dont know why). c) Create partition tables by the list (example client_id) for each distinct value in the original table
- migrate the old table (with values) in the new partitioned table.
- Check data is in the new partitioned tables. If ok then
- delete old table.