Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Packages - Versioning

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
RV14

New User


Joined: 21 Jun 2020
Posts: 3
Location: United States

PostPosted: Thu Jul 09, 2020 3:43 am    Post subject: Packages - Versioning
Reply with quote

Hi all,
Is there a maximum limit (from a performance perspective or any other) on the number of packages in a collection? To give a bit of background to this question:

Suppose we have N users, P COBOL DB2 programs. Each user will get a copy of and work with each of the programs in turn, tweaking and making their changes. Assume the tables all belong to a single schema and no updates to them, just querying. It makes sense then to have a single plan, single collection and multiple package versions for each program. So each user uses the VERSION parameter during precompile(or coprocessor) and all of them bind to the same collection. This is much neater than having a different collection for each user, esp since the schema is the same. Is this assumption correct?

In such a case, then, is it better to use VERSION(AUTO) which is essentially based on the CONTOKEN or have a version ID that we specify and so different from the CONTOKEN?

If N=1500, P=10, we would have 15000 packages in a single collection. Not sure if this is reasonable. Any thoughts? TIA.
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2443
Location: NY,USA

PostPosted: Fri Jul 10, 2020 7:19 pm    Post subject: Re: Packages - Versioning
Reply with quote

RV14 wrote:
Hi all,
Is there a maximum limit (from a performance perspective or any other) on the number of packages in a collection? To give a bit of background to this question:

Suppose we have N users, P COBOL DB2 programs. Each user will get a copy of and work with each of the programs in turn, tweaking and making their changes. Assume the tables all belong to a single schema and no updates to them, just querying. It makes sense then to have a single plan, single collection and multiple package versions for each program. So each user uses the VERSION parameter during precompile(or coprocessor) and all of them bind to the same collection. This is much neater than having a different collection for each user, esp since the schema is the same. Is this assumption correct?

In such a case, then, is it better to use VERSION(AUTO) which is essentially based on the CONTOKEN or have a version ID that we specify and so different from the CONTOKEN?

If N=1500, P=10, we would have 15000 packages in a single collection. Not sure if this is reasonable. Any thoughts? TIA.

Multiple packages in a collection is way to go and you can separate out Collections based on the each applications. But as always the case please reach out to DBA's and follow the protocols as they do at your site because sometimes developers ain't left with much of choice but to follow the protocols.
Just in case to read more-
https://www.ibmbigdatahub.com/blog/plans-collections-versions-packages-dbrms-confusion
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 Number of Packages required for stati... manojthokala7 DB2 4 Mon Sep 17, 2018 7:14 pm
No new posts list of executed but not commited pac... ramsri CA Products 4 Sat May 17, 2014 12:33 pm
No new posts subsequent add versioning results SQL... Auryn DB2 2 Thu Apr 17, 2014 6:02 pm
No new posts Query to list packages bound under a ... gylbharat DB2 7 Wed Jul 03, 2013 2:06 pm
No new posts Multiple Packages - Confusion gylbharat DB2 14 Mon Jun 10, 2013 12:23 am

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