View previous topic :: View next topic |
Author |
Message |
Dragon_Lee Beginner
Joined: 13 Feb 2006 Posts: 31 Topics: 17
|
Posted: Sun Aug 08, 2010 8:16 pm Post subject: How to define continuous block fetch and limited block fetch |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Dragon_Lee Beginner
Joined: 13 Feb 2006 Posts: 31 Topics: 17
|
Posted: Tue Aug 10, 2010 7:13 am Post subject: |
|
|
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 |
|
 |
|
|