Jump to content

Recommended Posts

Hi, 

 

I have never worried about the number of simultaneous connections to a MySQL database before, as the sites I have made so far weren't targeted for very many simultaneous users. However, I am dealing with a site now, whereby potentially thousands of users might be on at once. The application I need is very specific - i need to count the time that each user has been on the site and store it in the database.  Is this possible? What happens when too many users are connecting to the database at once??   

 

Thanks in advance for any insight to this!! 

 

Pambo   

Link to comment
https://forums.phpfreaks.com/topic/154568-mysql-connections/
Share on other sites

What happens when too many users are connecting to the database at once??
Well...it'll probably overload.

 

If you are that conserned about database usage, you could use SQLite for this particular function, rather than your mysql database, or your main database, whatever that may be.

 

SQLite is pretty fast and able to cope with a lot of connections. May be a better option.

Link to comment
https://forums.phpfreaks.com/topic/154568-mysql-connections/#findComment-812867
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.