Results 1 to 3 of 3

Thread: Singleton DB class

  1. #1

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    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?

  2. #2

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    Re: Singleton DB class

    Could it cause denial of service?

  3. #3
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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
  •  



Click Here to Expand Forum to Full Width