ERP5Type.Base: .serialize() is possible without writing object to DB
There is no need to write object to DB just to make sure it stays the same - since ZODB 3.10 there is explicit way to constraint commit to succeed only if an object does not change[1] : Connection.readCurrent(obj) All FileStorage [2], ZEO [3] and NEO [4,5] should support this. [1] https://github.com/zopefoundation/ZODB/commit/5a9afb14 [2] https://github.com/zopefoundation/ZODB/commit/99cbe353 [3] https://github.com/zopefoundation/ZODB/commit/a3de2ce8 [4] http://git.erp5.org/gitweb/neoppod.git/commitdiff/af5253bd [5] http://git.erp5.org/gitweb/neoppod.git/commitdiff/40652c1c /cc @vpelletier, @jm
Showing
Please register or sign in to comment