Redback Posted January 23, 2008 Share Posted January 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
beebum Posted January 23, 2008 Share Posted January 23, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.