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

No of DB2 calls reduced-significant performance improvement?


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

New User


Joined: 20 Sep 2007
Posts: 17
Location: cheenai

PostPosted: Thu Feb 05, 2009 11:44 am
Reply with quote

Hi,
Consider this program flow. A calls B,C,D,E & F.All Sub programs B,C,D,E& F query a table say,TABA using the same predicate but for different columns.
i.e,
A-> Select Col3,Col4,Col5 From TABA where Col1 = :predicate-1
B-> Select Col6,Col7,Col8 From TABA where Col1 = :predicate-1
and so on..
Now, If i combine all these 5 queries and convert it into a single query which select all columns reqd by these 5 programs and have the result in common storage so that all program can access the columns, what will be the impact in performance point of view. Will there be any improvement in performance?
TABA has approximately 130 cols, 25 M rows & 1526 pages.

Thank You in advance.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Thu Feb 05, 2009 11:54 am
Reply with quote

Yes. It will improve the performance since you are reducing 5 DB2 calls to 1.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Feb 05, 2009 5:03 pm
Reply with quote

Hi,

Yes, i also agree that it will improve the performance.

If that 5 programs are independent programs and have different purposes, then the logic used in that five programs need to be brought into this main program also. Then, in this case programming concept of REUSABILITY is lost, COMPLEXITY of main program increases.

Sushanth
Back to top
View user's profile Send private message
yogalakshmi

New User


Joined: 20 Sep 2007
Posts: 17
Location: cheenai

PostPosted: Thu Feb 05, 2009 5:12 pm
Reply with quote

Thanks sushanth & Bharath for your replies.

Sushanth,
Yes.I should consider the COMPLEXITY of the main progrmam because as of now its work is to call other programs and return the response.
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts exploiting Z16 performance PL/I & Assembler 2
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Which SORT utility can improve the Pe... DFSORT/ICETOOL 16
No new posts COBOL Performance Tuning COBOL Programming 6
Search our Forums:

Back to Top