Unix Technical Forum

Update/Load Slooooow

This is a discussion on Update/Load Slooooow within the DB2 forums, part of the Database Server Software category; --> Ok so I was using update to flip-flop some data in one of our fact event tables. It was ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:01 AM
cbielins@gmail.com
 
Posts: n/a
Default Update/Load Slooooow

Ok so I was using update to flip-flop some data in one of our fact
event tables. It was chugging OK, but I thought it could have been
faster. I ceased the update script and ran runstats on the table.
After it completed runstats, its updating even SLOWER!!!

Any thoughts?

Thanks,
Chris

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:01 AM
Serge Rielau
 
Posts: n/a
Default Re: Update/Load Slooooow

cbielins@gmail.com wrote:
> Ok so I was using update to flip-flop some data in one of our fact
> event tables. It was chugging OK, but I thought it could have been
> faster. I ceased the update script and ran runstats on the table.
> After it completed runstats, its updating even SLOWER!!!

Run explain and take a peek.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 05:01 AM
cbielins@gmail.com
 
Posts: n/a
Default Re: Update/Load Slooooow

What exactly would be that syntax? I've never used 'explain' before.

Thanks,
+CB

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 05:01 AM
Serge Rielau
 
Posts: n/a
Default Re: Update/Load Slooooow

cbielins@gmail.com wrote:
> What exactly would be that syntax? I've never used 'explain' before.
>
> Thanks,
> +CB
>

cd sqllib/misc
db2 -tvf EXPLAIN.DDL
db2 "explain plan for update ....."
db2exfmt -d <dbname> -o badupdate.exfmt -1 <- this is "minus one" not "L"

check out the badupdate.exfmt file.
(you can also post it here and hope someone comments)

How many idexes do you have on the table?
Keep in mind that adding indexes slows down changes to the table...

Cheers
Serge

PS: If you run a db warehouse explaining (and interpreting) plans is a
base skill.... google for "visual explain" and db2exmt. There are quite
a few resources available.....


--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com