Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Multi row fetch option in DB2 V8

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Multi row fetch option in DB2 V8
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: 743
Location: Germany

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

Morning Sir !

I think, the following link ist right for you:

http://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    Post subject:
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: 21
Location: chennai

PostPosted: Tue Jul 29, 2008 2:34 pm    Post subject: Reply to: Multi row fetch option in DB2 V8
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us