MySQL Forums
Forum List  »  Partitioning

Removing data from partitioned table
Posted by: santhosh edukulla
Date: April 06, 2011 12:22AM

Hi All,

Currently i have a table which has partitioning implemented on a column for days of month, that is every day the data goes to a given partition

say 31 partitions starting from p0.

Now, We have the option provided to user to delete a given data from table greater than a given date, so what internally we are doing is

finding out all partitions matching this condition and doing the following

Alter table drop PARTITION Px(dropping the partition and data matching the dates user asked to delete)

Alter table add partition px. (Creating the partition again with no data so that new data can be creeped in here).

Are we doing right or any other thing like reorganize or some other thing we need to do?

Let us know.



Thx,
Santhosh

Options: ReplyQuote


Subject
Views
Written By
Posted
Removing data from partitioned table
3460
April 06, 2011 12:22AM


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.