Fabrizio Posted August 22, 2014 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 Link to comment Share on other sites More sharing options...
Larry Posted August 22, 2014 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. " Link to comment Share on other sites More sharing options...
Recommended Posts