if you got 100 000 users, is mysql executing one sql query at the time?
cause in my php code i check if a certain row exists. if it doesn't it creates one. if it does, it just update the row counter.
it crossed my mind that perhaps 100 users are checking if the row exists at the same time, and when it doesn't they all create one row each.
if the mysql is handling them sequentially i know that it won't be an issue. then one user will check if it exists, if not, create it. and the other user will check if it exists, and since that's the case, it just update the counter.
but if they all check if it exists at the same time and let's say it doesn't, then they all create one row and the whole table structure will fail.
would be great if someone could shed a light on this topic.