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 > Table partitioning

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-09, 13:43
sathish_ix sathish_ix is offline
Registered User
 
Join Date: Apr 2008
Posts: 4
Table partitioning

Hi i have few questions on Partition,

We have a fact table which has 320 million records, we join the fact table using the time dimension to display monetary values on reports.

We decided to partition the fact table based on time_key_id column in fact table.
When we directly limit the time_key_id column in fact table, it return data in few seconds. But joining the table with time dimension, it takes some minutes to return results.

Is this the scenairo in db2, why it takes some time to return result while joining with time dimension.

The time_key_id has index on both time dimension and also in fact table.

Thanks,
Sathish
Reply With Quote
  #2 (permalink)  
Old 02-10-09, 06:01
mtangshan mtangshan is offline
Registered User
 
Join Date: Feb 2009
Posts: 8
For joining the table with time dimension, i think db2 will parse data in different storages that *may* impact the performance.
Reply With Quote
  #3 (permalink)  
Old 02-10-09, 07:21
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
The rule is : even the best indexed join will be less performant than just limiting data in one table.

Have you had a look at the explain plan?
__________________
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