Fabrizio 0 Posted August 22, 2014 Report Share Posted August 22, 2014 Hello to everyone, What can i do to prevent bad updates by concurrent users that happen to be operating on the same record of the database? I immagine it should be implemented a way to block a record when another user is using it. How can i accomplish that with YII? Thanks in advance for any help and have a pleasant weekend! Fabrizio Quote Link to post Share on other sites
Larry 428 Posted August 22, 2014 Report Share Posted August 22, 2014 The database will already handle this for you. From the MySQL manual: "Normally, you do not need to lock tables, because all single UPDATE statements are atomic; no other session can interfere with any other currently executing SQL statement. " Quote Link to post Share on other sites
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.
Note: Your post will require moderator approval before it will be visible.