Jump to content

Asyncro or race condition queries


Redback

Recommended Posts

What is the most efficient way to prevent the same insert query to run at the same time from multiple users?  Is there a way to force a query to complete before another is started or is it possible to place a function lock on the php side so that it can't be executed again until the previous execution of the function has finished?

 

Thank You

Link to comment
Share on other sites

Perhaps it would help if you would explain why you are concerned about multiple users making inserts simultaneously.

 

Basically, MySQL deals with multiple queries by keeping track of connections so, with proper code, there shouldn't be a problem.

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.