The python implementation of the "relationships between classes".

Christian Heimes lists at cheimes.de
Thu Nov 10 12:23:15 EST 2011


Am 10.11.2011 17:09, schrieb Tim Wintle:
>> Meanwhile, I have a ZODB running, which stores all the living
>> objects. 
> 
> The ZODB is append only and stores all objects. Deleting references to
> an object (which would causes deletion of standard python objects) won't
> delete it from the zodb, it'll just delete the references.

That's not entirely correct. In fact you *CAN* delete references to
objects that are stored in ZODB. An unreferenced object is no longer
accessible from future transactions. The object is only available from
the transaction history log and thus still stored in the database file
until the ZODB is packed. Once the ZODB is packed, all unreferenced
objects are gone for good.

ZODB is much more than a simple pickle jar. It's a transparent and
poweful object database that behaves like an ordinary tree of Python
objects.




More information about the Python-list mailing list