fast adding new fragment(partition) definition
Posted in 2006
Topics: General Discussion
Art and Informix lab, We have a wish! Just for demonstration, suppose a BIG table tab(int Date, int b) ...... fragment by expression partition p1 a<"2000-01-01" in dbs1 partition p2 a>="2000-01-01" and a<"2001-01-01" in dbs1 partition p3 a>="2001-01-01" and a<"2002-01-01" in dbs2 partition p4 a>="2002-01-01" and a<"2003-01-01" in dbs2 partition p5 a>="2003-01-01" and a<"2004-01-01" in dbs3 partition p6 a>="2004-01-01" and a<"2005-01-01" in dbs3 partition p7 a>="2005-01-01" and a<"2006-01-01" in dbs4 partition p8 a>="2006-01-01" and a<"2007-01-01" in dbs4 partition rmd remainder in dbs0 Next year, We will add a new fragment, some thing like, partition p9 a>="2007-01-01" and a<"2008-01-01" in dbs5 Based on my current testing, adding a such kind of new empty fragment takes a significant amount of time! I watched , looks it scans all other fragments( NOT ONLY remainder)to do it. Since all the fragments are non-overlapped, adding such new fragment definition should be very fast. I REALLY hope this could be done online quickly, not locking table with long time, since we rely on this feature to live! Quman
What happens when you dettach the rmd partition, attach the p9 partition and then attach the rmd partiontion? Andrew Ford -----Original Message----- From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of Quman Sent: Thursday, July 13, 2006 4:46 PM To: ids@iiug.org Subject: fast adding new fragment(partition) definition [7112] Art and Informix lab, We have a wish! Just for demonstration, suppose a BIG table tab(int Date, int b) ....... fragment by expression partition p1 a<"2000-01-01" in dbs1 partition p2 a>="2000-01-01" and a<"2001-01-01" in dbs1 partition p3 a>="2001-01-01" and a<"2002-01-01" in dbs2 partition p4 a>="2002-01-01" and a<"2003-01-01" in dbs2 partition p5 a>="2003-01-01" and a<"2004-01-01" in dbs3 partition p6 a>="2004-01-01" and a<"2005-01-01" in dbs3 partition p7 a>="2005-01-01" and a<"2006-01-01" in dbs4 partition p8 a>="2006-01-01" and a<"2007-01-01" in dbs4 partition rmd remainder in dbs0 Next year, We will add a new fragment, some thing like, partition p9 a>="2007-01-01" and a<"2008-01-01" in dbs5 Based on my current testing, adding a such kind of new empty fragment takes a significant amount of time! I watched , looks it scans all other fragments( NOT ONLY remainder)to do it. Since all the fragments are non-overlapped, adding such new fragment definition should be very fast. I REALLY hope this could be done online quickly, not locking table with long time, since we rely on this feature to live! Quman ************************************************************************ ******* Forum Note: Use "Reply" to post a response in the discussion forum.