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
 
Which of the following is more TIME EFFICIENT??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
baldi

New User


Joined: 16 Jun 2005
Posts: 13
Location: Amsterdam

PostPosted: Tue Nov 29, 2005 3:21 pm    Post subject: Which of the following is more TIME EFFICIENT??
Reply with quote

Situation A : One program needs different data from 100 different tables. For modularity sake programmer has made one dataservice for each table, and hence it makes 100 calls to these 100 dataservices to fetch the required data.

Situation B : There is only one dataservice which will go to all these 100 tables and fetch the required data, so now main program has only single call.

Now please consider following arguments :
1. Depending upon the input given, main program will at maximum need to fetch data from 10 tables with a given set of input data.

2. Load module size of single dataservice of Case B will be much larger
than dataservice of case A. So more MAIN MEMORY will be required and loading will also take more time.

3. But as all the calls are dynamic in nature, call reslution takes place during run time, so calling time of case B will be lesser as there is only single call.

Please assume things from your experience if some data is missing.
Thanks
Back to top
View user's profile Send private message

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Fri Dec 16, 2005 7:22 am    Post subject:
Reply with quote

baldi,

There is no straight forward answer to your query...! Both the cases have its merits and demerits...

The performance would also depend on the following:

1) Types of queries (simple or join or union)
2) Number of rows fetched by queries (singleton select or in a cursor)
3) Indexes defined on the tables

Hopes this helps

Regards
Mayuresh
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Fri Dec 16, 2005 11:52 am    Post subject: time
Reply with quote

Hi frnd,
V can't say the exact solution.. each of ur situation differs.. and it takes time accrodingly.. so as per mayuresh said.. all has it's own time execution and nothing depends on one another..
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm

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