Skip Navigation Links

Optimistic Concurrency support on ZRM

Posted by liwenb on October 29th, 2009. Other posts by liwenb

Recently, we’ve provided the Optimistic Concurrency Control (OCC) support on ZRM . Currently this feature is supported on ZRM update operation for both ZRM model API and HTTP REST API (both Json and Atom format). This work is based on the new ZRM refactor which introduces a new module zero.resource.core so that you can use ZRM framework to connect different data stores.

The work is done under bug 9157. You can download the latest monza driver and follow the documentation of OCC support. You can also try it in zero.suggest.demo and follow the instruction to enable it.

If you have any questions or comments , you can respond the topic on forum.

Enable the OCC in ZRM model.

{
"fields": {
     "suggestion": {"type": "string", "max_length": 128},
     "submitter": {"type": "string", "max_length": 64},
     "votes": {"type": "integer"}
},
"options":{
     "concurrency":"optimistic"
 }
}

Comments are closed.