Data Lock solution

Source: Internet
Author: User

InProgramIn encoding, we often encounter a problem where we need to lock a row of data and can only modify it by ourselves. We do not allow changes when processing an order, ),

There are many solutions

1. You can use process control:

2. Permission control can be used (only the data is allocated to the specified person): difficult permission allocation is chaotic, and the process can be merged here.

3. Automatic Control (Lock objects with a program or lock database records): the difficulty lies in when to release the control.

4. You can also refer to version control tools (such as VSS and SVN)

Here, there are many disadvantages in the four three models, and it is difficult to implement the automatic release control solution. Currently, it is recommended that solution 4 be implemented (the Merge function is not enough, it is too complicated, and the exclusive mode is migrated out) the simple explanation is that the system does not automatically add an export function, and the locker is unlocked under the personal lock record. The administrator can unlock the lock like VSS.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.