BJCooperIT
Programmer
I was researching packages and found:
Are there other scenarios in which logical code groups should not reside together in a package?
Does a package ever become too large?
Thanks!
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
My website: www.EmuProductsPlus.com
My client has a large package that contains over 5000 lines of code and 19 procedures all relating to updating various bits of data in the database pertaining to a person. None of these procedures rely on each other. There are no variables in the package specification. Until this project, the code has been stable and not recompiled often. This package has become the scary "black box" code that no one person understands. Many of the procedures are only called by batch COBOL programs so there is no long-term caching advantage. The project manager is wondering if we should consider breaking this package up since I am modifying about half of the code.Oracle packages allow you to group together related items, types and subprograms as a PL/SQL module.
When a procedure in a package is called the entire package is loaded, though it happens to be expensive first time, the response is faster for subsequent calls.
Package allows us to create types, variable and subprograms that are private or public.
Avoid program dependency bottlenecks in your code base. If you create packages that are referenced widely in your application, do everything you can to avoid the need to recompile those programs.
Are there other scenarios in which logical code groups should not reside together in a package?
Does a package ever become too large?
Thanks!
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
My website: www.EmuProductsPlus.com