Jump to content
Larry Ullman's Book Forums

Block A Record Possible Managed By Concurrent Users


Fabrizio
 Share

Recommended Posts

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

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

 Share

×
×
  • Create New...