Unix Technical Forum

referred more than once in access plan means?

This is a discussion on referred more than once in access plan means? within the DB2 forums, part of the Database Server Software category; --> Can someone help me to confirm - From the access plan tree of a query, if one table is ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:01 PM
Fan Ruo Xin
 
Posts: n/a
Default referred more than once in access plan means?

Can someone help me to confirm -
From the access plan tree of a query, if one table is referred (TABLE SCAN)
three times. Does that mean this table was scanned (either from disk or
bufferpool) three times during runtime?
TIA
FRX


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:01 PM
Mark A
 
Posts: n/a
Default Re: referred more than once in access plan means?

"Fan Ruo Xin" <fanruox@sbcglobal.net> wrote in message
news:7RuVb.2570$PY.839@newssvr26.news.prodigy.com. ..
> Can someone help me to confirm -
> From the access plan tree of a query, if one table is referred (TABLE

SCAN)
> three times. Does that mean this table was scanned (either from disk or
> bufferpool) three times during runtime?
> TIA
> FRX
>

That is certainly possible, especially if there is a subselect. It might
also indicate intra-partition or inter-partition parallelism. But it is hard
to know exactly what you are referring to without seeing the explain output.

All data is accessed by applications from the bufferpool. If the page which
contains the needed row is not in the bufferpool, DB2 puts it in the
bufferpool for access by the application. The explain does not take into
consideration any physical I/O to put needed pages in the bufferpool if they
are not already there. However, the explain will indicate prefetch activity,
which is attempt by DB2 to place pages in the bufferpool before they are
asked for by the application.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 05:01 PM
Fan Ruo Xin
 
Posts: n/a
Default Re: referred more than once in access plan means?


"Mark A" <ma@switchboard.net> wrote in message
news:HevVb.489$Jj6.41784@news.uswest.net...
> "Fan Ruo Xin" <fanruox@sbcglobal.net> wrote in message
> news:7RuVb.2570$PY.839@newssvr26.news.prodigy.com. ..
> > Can someone help me to confirm -
> > From the access plan tree of a query, if one table is referred (TABLE

> SCAN)
> > three times. Does that mean this table was scanned (either from disk or
> > bufferpool) three times during runtime?
> > TIA
> > FRX
> >

> That is certainly possible, especially if there is a subselect. It might
> also indicate intra-partition or inter-partition parallelism. But it is

hard
> to know exactly what you are referring to without seeing the explain

output.
============
That is a good point. Parallel read might refer a table (especially a small
table) more times than a non-parallel read.
If I used neither intra_parallelism, nor inter_parallelism. I want to know
when you check the access plan, and you find out that a table is referred
three times. Does that mean this table need to be read three times?

>
> All data is accessed by applications from the bufferpool. If the page

which
> contains the needed row is not in the bufferpool, DB2 puts it in the
> bufferpool for access by the application. The explain does not take into
> consideration any physical I/O to put needed pages in the bufferpool if

they
> are not already there. However, the explain will indicate prefetch

activity,
> which is attempt by DB2 to place pages in the bufferpool before they are
> asked for by the application.

=========
In fact, my question is not this part. Through take a view of access plan.
You can't determine if the read is physical or logical ...
>
>



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:03 AM.


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