MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to define continuous block fetch and limited block fetch

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Dragon_Lee
Beginner


Joined: 13 Feb 2006
Posts: 31
Topics: 17

PostPosted: Sun Aug 08, 2010 8:16 pm    Post subject: How to define continuous block fetch and limited block fetch Reply with quote

Hello, how do I know whether the DB2 server is retriving data by 'continuous block fetch' or 'limited block fetch'?

As far as I know, as long as the cursor is defined as 'FOR FETCH ONLY' or 'FOE READ ONLY', then the DB2 server will default to use the block fetch, but how can I know it's useing 'continuous block fetch' or 'limited block fetch'?

Also, by what means I can know the size of a query block in the DB2 server? And how many extra blocks are defined that can be returned for a FETCH?

Appreciate any inputs. Thanks.
_________________
Dragon
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Aug 09, 2010 10:09 am    Post subject: Reply with quote

Dragon_Lee,

Check this

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.perf/db2z_continuousblockfetch.htm

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dragon_Lee
Beginner


Joined: 13 Feb 2006
Posts: 31
Topics: 17

PostPosted: Tue Aug 10, 2010 7:13 am    Post subject: Reply with quote

Thanks Kolusu. As per the doc, 'To enable continuous block fetch for DRDA and to regulate the number of extra rows sent by a DB2 for z/OS server, you must use the OPTIMIZE FOR n ROWS clause on your SELECT statement.'

It looks like the continuous block fetch is default if OPTIMIZE FOR n ROWS clause is used in a FETCH only cursor. Right?
_________________
Dragon
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group