IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Interpreting Explain output in Plan_table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijikesavan

Active User


Joined: 04 Oct 2006
Posts: 118
Location: NJ, USA

PostPosted: Thu Oct 12, 2006 3:33 am
Reply with quote

Hi,
I have run a explain to optimize a query. Found the value of a column prefetch as 'D' . Not sure wht this means?
Any pointers would help.

Thanks,
Viji
Back to top
View user's profile Send private message
arka_nandi

New User


Joined: 15 Dec 2005
Posts: 2

PostPosted: Mon Oct 16, 2006 10:15 am
Reply with quote

Below are posible values for the prefetch column in the plan table and their explanation -

S = pure sequential prefetch;
L = prefetch through a page list;
D = optimizer expects dynamic prefetch;
blank = unknown at bind time or no prefetch.

Hope this helps.

- Arka.
Back to top
View user's profile Send private message
mkarmegam

New User


Joined: 28 May 2006
Posts: 13
Location: USA

PostPosted: Thu Oct 19, 2006 3:25 am
Reply with quote

More details...
| 5.11.5.2 Dynamic prefetch (PREFETCH=D)


| Dynamic prefetch can reduce paging and improve performance over sequential
| prefetch for some data access that involves data that is not on
| consecutive pages. When DB2 expects that dynamic prefetch will be used,
| DB2 sets PREFETCH=D. At runtime, dynamic prefetch might or might not
| actually be used. However, DB2 expects dynamic prefetch and optimizes for
| that behavior.


| When dynamic prefetch is used: Dynamic prefetch is used in prefetch
| situations when the pages that DB2 will access are distributed in a
| nonconsecutive manner. If the pages are distributed in a sufficiently
| consecutive manner, sequential prefetch is used instead.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
Search our Forums:

Back to Top