Jump to content

PHP + MySQL Query Queue


nightkarnation

Recommended Posts

Hey Guys, I have the following problem.

 

I have a lot of users sending querys to my DB at the same time, and for example each time a user sends the query, a field with a number increases.

Sometimes that number increases like this: 10.11, 10.12, 10.13, 10.15, 10.14

When it obviously should be: 10.11, 10.12, 10.13, 10.14, 10.15

 

Maybe (in this example) the query from 10.15 finished first (got inserted on DB) than the query from 10.14.

 

My question is if there is some kind of function or line of code to have some kind of queue between the Querys...so if a query that is received first must finish and the the next can go ahead and query.

 

Hope I am making myself clear,

 

Looking forward any kind of help and/or suggestions.

 

Thanks a lot in advance!

Link to comment
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.