|
-
Nov 16th, 2009, 02:13 AM
#1
Thread Starter
Hyperactive Member
Singleton DB class
What could potentially happen if you don't use a singleton db connection class and there are about 60 to 100 or more connections open at a time?
-
Nov 16th, 2009, 12:51 PM
#2
Thread Starter
Hyperactive Member
Re: Singleton DB class
Could it cause denial of service?
-
Nov 16th, 2009, 01:59 PM
#3
Re: Singleton DB class
.. no?
you don't need to create a new database connection every time you query something, you only need to create a database connection for every session or page load. using a singleton class wouldn't prevent this -- not unless you're doing something terribly wrong and actually trying to open a new database connection every time you sent a query to the database (rather than connecting once and then using that connection for every query).
what exactly are you trying to do?
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
|