|
-
May 5th, 2004, 02:07 PM
#1
Thread Starter
Frenzied Member
Best way to connect to db?
What's considered the best way to declare db connections? Declare them global in a module, so they're available everywhere, but always in memory, or declare them in each sub & function, increasing overhead but saving memory? Or declaring them in a module, but instantiating in each sub?
It may not be a big savings either way, but I have to deal with some machines that only have 32 mb ram. And I just like cleaner, more efficient code. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|