Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Question ab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 12 Topic 8829 of 9234
Post > Topic >>

Re: Question about MIN/MAX optimization

by Serge Rielau <srielau@[EMAIL PROTECTED] > Apr 26, 2008 at 11:57 AM

Michel Esber wrote:
>> This is the optimal plan we want. Can you reproduce it on DB2 V8 with
>> this DDL and DML?
> 
> Here is a v8 plan using your solution. I will post another message
> with the plan for MIN/MAX and group by.
>         Total Cost:             12.846
>         Query Degree:           1
> 
>               Rows
>              RETURN
>              (   1)
>               Cost
>                I/O
>                |
>                 1
>              NLJOIN
>              (   2)
>              12.846
>                 2
>           /-----+-----\
>         1                1
>      IXSCAN           IXSCAN
>      (   3)           (   4)
>      6.42298          6.42298
>         1                1
>        |                |
>        73               73
>  INDEX: DB2INST1  INDEX: DB2INST1
>         I                I

OK, so now the question is where is the difference between your original 
scenario  (not the best plan) and mine (best plan).
I recommend morphing it step by step and see where you loose your way.
Obviosuly the first step is to add data and statistics.

Cheers
Serge

-- 
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
 




 12 Posts in Topic:
Question about MIN/MAX optimization
Michel Esber <michel@[  2008-04-25 08:05:00 
Re: Question about MIN/MAX optimization
Serge Rielau <srielau@  2008-04-25 11:15:27 
Re: Question about MIN/MAX optimization
Michel Esber <michel@[  2008-04-25 08:41:47 
Re: Question about MIN/MAX optimization
Serge Rielau <srielau@  2008-04-25 11:52:07 
Re: Question about MIN/MAX optimization
Michel Esber <michel@[  2008-04-25 09:00:01 
Re: Question about MIN/MAX optimization
"Dan van Ginhoven&qu  2008-04-25 16:34:10 
Re: Question about MIN/MAX optimization
"Dan van Ginhoven&qu  2008-04-25 17:03:10 
Re: Question about MIN/MAX optimization
Michel Esber <michel@[  2008-04-25 09:58:22 
Re: Question about MIN/MAX optimization
Serge Rielau <srielau@  2008-04-25 19:10:25 
Re: Question about MIN/MAX optimization
Michel Esber <michel@[  2008-04-26 08:18:19 
Re: Question about MIN/MAX optimization
Serge Rielau <srielau@  2008-04-26 11:57:00 
Re: Question about MIN/MAX optimization
Michel Esber <michel@[  2008-04-26 08:20:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 18:10:18 CDT 2008.