I have an app that I'm modifying.  At start up, the app gets a 
connection handle to the main database and stores it in a public var, 
let's call it gonHandle, which is then used throughout the app.  No 
problems there.

I need to tie in a second database, which I've done.  This database will 
be used for the occasional report.  Most days, it won't be used at all.  
My question is this: Do I open and save a public handle at startup, or 
just get a handle when the actual report is needed.  Others who maintain 
the program would probably expect the same behavior as the current 
reports (ie, a global handle is setup and ready when/if needed)

Is there a high cost in performance, etc, with creating the handle and 
leaving it available through the program, or should I call as needed?


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to