[odb-users] Plans for implementing optimistic concurrency

Chris Richards chris.richards at yellowfeather.co.uk
Fri Nov 11 07:24:58 EST 2011



> *From:* Chris Richards <chris.richards at yellowfeather.co.uk>
> *Date:* 11 November 2011 12:23
> *To:* Boris Kolpackov <boris at codesynthesis.com>
> *Subject:* [odb-users] Plans for implementing optimistic concurrency
> Hi Boris,
>
> Thanks for implementing this so quickly, I've just gone through the 
> optimistic example and looked at the sql log and all looks good. I 
> will look at integrating with our codebase, but I'm happy to say it is 
> working.
>
> BTW I have only tested on Linux and mysql
>
> Thanks,
> Chris
>
> Boris Kolpackov wrote:
> *From:* Boris Kolpackov <boris at codesynthesis.com>
> *Date:* 03 November 2011 13:13
> *To:* Chris Richards <chris.richards at yellowfeather.co.uk>
> *CC:* "odb-users at codesynthesis.com" <odb-users at codesynthesis.com>
> *Subject:* [odb-users] Plans for implementing optimistic concurrency
> Hi Chris,
>
> In just released[1] ODB 1.7.0.a1 we added support for optimistic
> concurrency using object versioning. We are still working on a
> chapter in the ODB manual for this feature but the 'optimistic'
> example in the odb-examples package should give you a pretty
> good idea about how everything works.
>
> I would appreciate it if you could give this a try and let us know
> if everything works well for your use-case.
>
> [1] 
> http://www.codesynthesis.com/pipermail/odb-users/2011-November/000385.html
>
> Boris
> *From:* Boris Kolpackov <boris at codesynthesis.com>
> *Date:* 12 October 2011 12:44
> *To:* Chris Richards <chris.richards at yellowfeather.co.uk>
> *CC:* "odb-users at codesynthesis.com" <odb-users at codesynthesis.com>
> *Subject:* [odb-users] Plans for implementing optimistic concurrency
> Hi Chris,
>
>
> It is on our TODO list but we haven't scheduled it yet for any
> particular release. Having said that, it shouldn't be too difficult
> for us to implement this using a member of an object as a version.
> Something like this:
>
> #pragma db object optimistic(version_)
> class person
> {
> ...
>
> unsigned long version_;
> };
>
> The ODB will then check/manage the version and throw an exception if
> we try to overwrite a commit with update().
>
> Would something like this work for your case? If so, would you be
> willing to start using a pre-release if we implemented this (we like
> to release new features that someone is already using ;-))?
>
> Boris
> *From:* Chris Richards <chris.richards at yellowfeather.co.uk>
> *Date:* 11 October 2011 17:19
> *To:* "odb-users at codesynthesis.com" <odb-users at codesynthesis.com>
> *Subject:* Plans for implementing optimistic concurrency
> Hi,
>
> In the manual it states that optimistic concurrency will be available
> in a future version, are you able to give a rough indication of when
> this will be available? Say this year?
>
> Regards,
> Chris


More information about the odb-users mailing list