Jump to content

Recommended Posts

I know I will get a lot of "depends on size of fields etc.", but I would appreciate an idea as to expected response times for a mysql database.

 

I have a script that checks a table for all logins and returns info. (basic table with about 10 fields - each with maximum 50 characters)

 

If a record is retuned, it sets the PHP sessions and is complete.

 

The table DOES have perfectly tunes indexes set up.

 

At the moment, the entire PHP script runs perfectly and executes in about maximum 1 second. - finalising with the successful login.

 

However, that is because there is 1 login record!

 

What about if the login table holds 1 million records - searching this will obviosuly impact on the one user who now has to wait for the dbase to search 1 million rather than 1 record.

 

If it takes 1 second now, what is the worse that 1 million could take?

 

A rough estimate is fine - i.e. are we talking a few seconds - or are we taking 15-20 seconds etc.!!

 

My server is an excellent cloud server that can cope with any network load - so number of users / network load is not a problem.

 

If anyone has experience what you can expect from a mysql running on a good server - ie answer might be expect 1 second per 10-50,000 records etc. - that would be great.

Link to comment
https://forums.phpfreaks.com/topic/152268-quick-question-mysql-response-times/
Share on other sites

If

The table DOES have perfectly tunes indexes set up
then this shouldn't be a significant issue, unless you really expect millions of concurrent logins.... in which case it's the data transfer between the database and PHP that will be a problem, not the database searching
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.