Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Interpreting Explain output in Plan_table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Interpreting Explain output in Plan_table
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    Post subject: Plan table - Prefetch
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    Post subject: Re: Interpreting Explain output in Plan_table
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us