The python implementation of the "relationships between classes".

Jerry Zhang jerry.scofield at gmail.com
Thu Nov 10 13:13:37 EST 2011


2011/11/11 Christian Heimes <lists at cheimes.de>

> 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.
>
>
I am verifying the ZODB solution, not clear yet, anyway, your points
regarding this sounds reasonable to me.
i am almost sure the python and ZODB designer has already did a good job to
make us handle such case easily, all i am trying to do is find the right
path.

Thanks a lot.


> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111111/4296261c/attachment-0001.html>


More information about the Python-list mailing list