[ZODB-Dev] Commit or lock object accross transactions
Christian Reis
kiko at async.com.br
Wed Jul 16 14:49:26 EDT 2003
On Wed, Jul 16, 2003 at 05:33:02PM +0100, Toby Dickenson wrote:
> If you only need a small number of unique ids then there may be a cheeky
> option..... the method for allocating ZODB OIDs has all of the
> characteristics that you need. You could use an oid of a newly created object
> as your unique id, or call the storage.new_oid method directly.
Why only "a small number"?
The problem I see here is that ZODB OIDs are global for *all* objects
(of any type) in the database, which might not be what is required here
(it certainly wouldn't work for me).
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the ZODB-Dev
mailing list