Jump to content

dbConnect quantity


dugasz1

Recommended Posts

Posted

Hi!

My question is that what is the better(faster) if I have a resource with one mysql connection and all other resources use this res to query in the database or if all resource have a connection if it need to query in the database?

Posted

One connection is obviously much easier to take care of. You may create as many connections as you want, of course, but keep in mind that making a ton of connections might slow down your server (+ avoid reopening connections frequently as it may cause slowdowns).

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...