Connecting Tech Pros Worldwide Help | Site Map

difference in performance in two environments for same sql

  #1  
Old October 28th, 2008, 02:55 PM
db2admin
Guest
 
Posts: n/a
hello,

We have 2 environments one is test which is one BCU with 8 partitions
+ admin/catalog node server ( smaller BCU ) and other prod is 3 BCU
with 24 partitions + admin/catalog node server ( smaller BCU ) .

I have sql which shows higher cost in test but run faster and does not
drive CPU 100% and same SQL shows lower cost on prod but takes 5 times
longer and drives CPU to 100%

If i use optimization level 3 on prod, then this SQL on prod runs same
way as on test with same time frame. default optimization level is 5
for both environments.

why same sql with same amount of data in tables but different
databases shows different explain plans and runs differently ? can
optimization level be specified different for just one SQL in
application ?

regards,
db2admin
  #2  
Old October 28th, 2008, 05:15 PM
Serge Rielau
Guest
 
Posts: n/a

re: difference in performance in two environments for same sql


db2admin wrote:
Quote:
hello,
>
We have 2 environments one is test which is one BCU with 8 partitions
+ admin/catalog node server ( smaller BCU ) and other prod is 3 BCU
with 24 partitions + admin/catalog node server ( smaller BCU ) .
>
I have sql which shows higher cost in test but run faster and does not
drive CPU 100% and same SQL shows lower cost on prod but takes 5 times
longer and drives CPU to 100%
>
If i use optimization level 3 on prod, then this SQL on prod runs same
way as on test with same time frame. default optimization level is 5
for both environments.
>
why same sql with same amount of data in tables but different
databases shows different explain plans and runs differently ? can
optimization level be specified different for just one SQL in
application ?
Take a look at explain on both machines and compare the explain headers?
Do any metric differ (IO bandwidth, CPU speed, etc...)

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Doing Swing right r035198x insights 6 July 16th, 2009 09:43 PM
difference in performance in two environments for same sql db2admin answers 0 October 28th, 2008 02:35 PM
.Net frameword Resources ( vb.net , asp.net etc...) shamirza answers 0 January 17th, 2007 08:05 AM
Is this feasible? John answers 11 November 12th, 2005 06:23 PM