ZODB.Persistent Objects.SerialNumber
Documentation
The serial number will be used as an identifier for object revisions. It's primary purpose is to provide a safeguard against missing conflicting object writes due to race conditions. When an object is read, it's serial number is read too. When an object is modified and the changes written to the database, the serial number that was read is presented. The storage will make sure that the last revision written has the same serial number.
I'm still considering what form the serial number should take. Some possible options include:
- A hash of the object data,
- A serial number,
- A time-stamp.
I need to give some more consideration to this.