473,796 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A little question on PREFETCH / MDC

Dear all,

If you do a SELECT * FROM TAB WHERE DATE=?, the explain plan might pick up a
TBSCAN and you'll see in db2exfmt PREFETCH=SEQUEN TIAL.

Now, TAB is a MDC, and DATE is a dimension. The explain plan will pick up
the block index and db2exfmt indicates PREFETCH=NONE. However, monitoring
bufferpools shows async IO is done.

Would it make sense to have db2exfmt indicate in that case
PREFETCH=SEQUEN TIAL when the MDC is read from 1 dimension ? I believe all
extents will be read ahead in the order indicated by the block index ?

Regards,

Jean-Marc
Nov 12 '05 #1
2 1707
"Jean-Marc Blaise" <no****@nowhere .com> a écrit dans le message de
news:42******** *************@n ews.wanadoo.fr. ..
Dear all,

If you do a SELECT * FROM TAB WHERE DATE=?, the explain plan might pick up a TBSCAN and you'll see in db2exfmt PREFETCH=SEQUEN TIAL.

Now, TAB is a MDC, and DATE is a dimension. The explain plan will pick up
the block index and db2exfmt indicates PREFETCH=NONE. However, monitoring
bufferpools shows async IO is done.

Would it make sense to have db2exfmt indicate in that case
PREFETCH=SEQUEN TIAL when the MDC is read from 1 dimension ? I believe all
extents will be read ahead in the order indicated by the block index ?

Regards,

Jean-Marc

I have found this in the DB2 Information Center:

"Second, prefetching of the data pages does not rely on sequential detection
when block indexes are used. DB2 UDB looks ahead in the index, prefetching
the data pages of the blocks into memory using big-block I/O, and ensuring
that the scan does not incur the I/O when the data pages are accessed in the
table."

I understand from this that "block prefetching" is always done due to MDC.

Improvment request: it should be nice to externalize this in explains, why
not PREFETCH=BLOCK instead of NONE ?

Jean-Marc
Nov 12 '05 #2

"Jean-Marc Blaise" <no****@nowhere .com> wrote in message
news:42******** **************@ news.wanadoo.fr ...
"Jean-Marc Blaise" <no****@nowhere .com> a écrit dans le message de
news:42******** *************@n ews.wanadoo.fr. ..
Dear all,

If you do a SELECT * FROM TAB WHERE DATE=?, the explain plan might pick up
a
TBSCAN and you'll see in db2exfmt PREFETCH=SEQUEN TIAL.

Now, TAB is a MDC, and DATE is a dimension. The explain plan will pick
up the block index and db2exfmt indicates PREFETCH=NONE. However, monitoring bufferpools shows async IO is done.

Would it make sense to have db2exfmt indicate in that case
PREFETCH=SEQUEN TIAL when the MDC is read from 1 dimension ? I believe all extents will be read ahead in the order indicated by the block index ?

Regards,

Jean-Marc

I have found this in the DB2 Information Center:

"Second, prefetching of the data pages does not rely on sequential

detection when block indexes are used. DB2 UDB looks ahead in the index, prefetching
the data pages of the blocks into memory using big-block I/O, and ensuring
that the scan does not incur the I/O when the data pages are accessed in the table."

I understand from this that "block prefetching" is always done due to MDC.

Improvment request: it should be nice to externalize this in explains, why
not PREFETCH=BLOCK instead of NONE ? ============
When I used DB2 UDB Version 8.1 GA (or fixpak1). I couldn't find the block
I/O information either, when I took a look at the explain output.
I know my query did using block I/O, since I found that information from
snapshot output.
I never try it by using the late release.

Jean-Marc

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3686
by: Erik Hendrix | last post by:
Hi, I have a quick question, when one sets the prefetch size = extent size, then when doing a backup we will have 1 agent (db2bm) doing the reads. If we have prefetch size a multiple of extent size AND we have multiple containers and/or PARALLEL_IO set then not db2bm but the db2 prefetchers will read the data. Now no matter which one reads the data, it will still be read in 1 extent size. Wouldn't it thus be much more efficient to...
1
6256
by: Erik Hendrix | last post by:
Hi, I have a question here regarding setting the prefetch size. So far we took the rule that for OLTP, prefetchsize = extent size and for DSS prefetchsize = extent size * number. However, especially due to the "Skip Scans" for indexes I started to question this. It looks to me that for reading a index DB2 will or do a synchronous read or he will have to scan the whole index and thus prefetch the data correct? If this is so, then it...
8
27466
by: Perception | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
6
1266
by: Ioannis Theoharis | last post by:
Hi, i have 3 tables calling father, child1, child2: create table father(att0 int4); create table child1() inherits(father); create table child2() inherits(father); i want to get all the instances of the hierarchy:
2
6551
by: bhatia | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
3
8239
by: rdudejr | last post by:
Hi all, Ive got a database approx 350 GB in which Im getting very high Time waited for prefetch. This is directly out of the snapshot for the db (these are for the entire database I assume as I pulled it out of get snapshot for all on {dbname}) Total buffer pool read time (milliseconds) = 45660639 Total buffer pool write time (milliseconds)= 42128058 Total elapsed asynchronous read time = 33856320
0
1280
by: dunleav1 | last post by:
Does it make sense to set prefetch automatic on a temp tablespace?
102
5170
by: BoogieWithStu22 | last post by:
I am running into a problem with a web page I have created when viewing it in IE6 on some machines. The page has a database lookup. The user enters an account name or number and clicks a lookup button. This hits an AS400 database looks for matches and returns a dataset that is used to populate a datagrid. The user then selects one of the entries from the list, this entry is used to populate a couple of textboxes on the page and a couple...
1
1663
by: =?Utf-8?B?Sm9ubnk=?= | last post by:
Hi. I an pulling my hair out with this one and hope somebody can help me.I started getting a message on startuo saying windows/prefetch/explorer.exe -082F38A9.pf is corrupt.Since then every time i turn on computer the start and icons only stay on the screen for a few seconds then dissapear.The last day or so sometimes i just get the home edition screen shwing with nothing else.The only way i can get online is by alt ctrl and del to get up...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.