Jump to content
Larry Ullman's Book Forums

Block A Record Possible Managed By Concurrent Users


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 post
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 post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...