[odb-users] Plans for implementing optimistic concurrency
boris at codesynthesis.com
Wed Oct 12 07:44:45 EDT 2011
Chris Richards <chris.richards at yellowfeather.co.uk> writes:
> 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?
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_)
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 ;-))?
More information about the odb-users