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 > Partitioning Key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-06, 11:22
adu143 adu143 is offline
Registered User
 
Join Date: Sep 2003
Location: Bangalore
Posts: 5
Partitioning Key

All,
Can anybody suggest me how to choose a partitioning key in a star schema model or where to find a document explaining this??

Regards
Adarsh
Reply With Quote
  #2 (permalink)  
Old 08-31-06, 20:42
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The primary consideration in choosing a partitioning key with DPF is to avoid cross-partition joins (along with even distribution of data among the partitions).

If you have only one fact table in your Star Schema, then just about any reasonable partitioning key can be used. But you need to replicate all the small dimension tables on each partition (so a copy of each dimension table is on each partition) to avoid cross-partition joins with the fact table.

If you have multiple fact tables that may be joined together (I am not talking about 2 unrelated fact tables that will never be joined), then it is a bit more complicated and if possible you should choose a partitioning key that is the same for both tables (so long as it produces an even distribution of data across the partitions). Again, the purpose of doing that is to eliminate cross partition joins.

If you follow the above guidelines, you will be 90% of the way home toward high performance parallel query processing.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-04-06, 00:14
adu143 adu143 is offline
Registered User
 
Join Date: Sep 2003
Location: Bangalore
Posts: 5
Thanks lot Marcus. Will try this out....thanks again
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