IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Multi row fetch option in DB2 V8


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Fri Jul 25, 2008 2:17 pm
Reply with quote

We are creating an I/O module to select data from a table, and the suggestion is to use multi row fetch option in DB2 V8.

Is there any minimum row counts required for us to utilize the CPU advantage of Multi row fetch?.

I came to know that optimal value of the number of rows is 100. looks like my application will have a result set less than 100 rows in almost 90% of the attempts. Is it really beneifical to go for Multi row fetch here?

Thanks,
Prajesh V P
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Jul 25, 2008 5:35 pm
Reply with quote

Morning Sir !

I think, the following link ist right for you:

it.toolbox.com/blogs/db2zos/kewl-db2-for-zos-version-8-feature-part-2a-multirow-insert-fetch-7377

Nice Weekend
Back to top
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Tue Jul 29, 2008 10:24 am
Reply with quote

UmeaySan,

Thanks for that nice link!

Eventhough they are claiming that optimal value of multi row fetch is 100, my case is little diffrent here.

In any case my query will have a results set of less than 100 rows, ie I am going to hit a sqlcode of 100 for the first fetch itself if I am using a host variable array of 100. In that case, will that multple row fetch will be really beneficial?

Thanks,
Prajesh V P
Back to top
View user's profile Send private message
sudhakar84

New User


Joined: 20 Jun 2008
Posts: 25
Location: chennai

PostPosted: Tue Jul 29, 2008 2:34 pm
Reply with quote

Hi,

Based on the business situation u can conclude the rowset size.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
Search our Forums:

Back to Top