Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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: 25
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
This topic is locked: you cannot edit posts or make replies. How to acheive Multi thread parallel ... pkmurali Compuware & Other Tools 1 Sun Mar 25, 2018 10:46 am
No new posts VALIDATE option in BIND jcl Poha Eater DB2 2 Mon Feb 26, 2018 7:08 pm
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us