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 > update

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-10, 07:39
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
update

Dear All ,

I am facing unique problem.I am in partitioned environment with 24 logical nodes .one of my table spread across 24 all nodes which doesn't have any indexes on it and when i am updating that table with 15000 records it takes 19 hours .
that table has 45 Million record in it .
table is distributed by HASH it doesnt have any MDC column .
Can you please guide me how to fine tune it so that my update becomes faster ?
Regards ,
Reply With Quote
  #2 (permalink)  
Old 12-15-10, 14:06
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Have you tried to create indexes? And/or does your UPDATE statement contain predicates, which are also in the partitioning key?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 12-16-10, 02:42
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
thanks knut ..i created index ...it improved the performance of the query ..but when i am updating the same no of records in a non partitioned environment its happening in seconds where as when i am updating the same no of records in partitioned environment its taking 12 minutes ..i am updating same no or records ...can you please help me understand this .

Thanks & Warm Regards
Reply With Quote
  #4 (permalink)  
Old 12-16-10, 07:27
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
As Stolze mentioned, it depends on whether the column(s) you are updating is (are) a part of the distribution key. If they are not, you will just be performing table scans on each partition. If they are, on top of that the database manager will have to move each updated row to a new partition.
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