If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Attach partition Vs Add partition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-10, 06:59
bala_e bala_e is offline
Registered User
 
Join Date: Jan 2004
Posts: 49
Exclamation Attach partition Vs Add partition

Hi All,

We are using DB2 UDB V9.7 on AIX. Some of the tables are defined on range partitions. I have couple of doubts on this.

1. What is the difference between attach partition and add partition?
2. Which one is best for OLAP environment? why?

If my question is not clear, please let me know.

With Advance Thanks,

Balakrishnan Ethiraju
Reply With Quote
  #2 (permalink)  
Old 03-26-10, 07:58
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by bala_e View Post

1. What is the difference between attach partition and add partition?
with ADD PARTITION you add a new range to a table and then load the data into it.

in ATTACH PARTITION you create a 'basic' table (and usually load the data) and then add a range to the partition table by attaching the already existing table.

Quote:
Originally Posted by bala_e View Post

2. Which one is best for OLAP environment? why?
ADD or ATTACH does not have anything to do with OLAP environment. It depends on your partitioning range and data loading. ie, if you load data into a table on a monthly basis and have paritions by month, then you may load the data into the table and then attach it , thereby reducing overhead/locking on the existing data when loading. but, if you have a parition by month, and then load data on an hourly basis, attach has little meaning .. so you can add the partition to the table and then add data ...

hth

sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On