[Zope3-dev] Re: Question regarding zc.relationship

Jürgen Kartnaller juergen at kartnaller.at
Wed Jun 27 12:21:06 EDT 2007


We store >100K relations this way.

ZODB loads the referenced objects on demand.

Jürgen

Andreas Kopecky wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello!
> 
> I got a question regarding the Relationship container part of
> zc.relationship:
> 
> I realized that the Relationship class stores the objects which belong
> to the relation (source and target) as normal (strong?) python reference
> inside the Relationship object. My question: Is there and performance
> issue or data integrity issue to be expected when i store >10k or such
> relations with such behavior in the ZODB? I would have expected the
> Relationship class to use weak references to store the related objects.
> 
> thanks in advance!
> 
> - -regards
> Andreas Kopecky
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iQEVAwUBRoJjRWs7yVaOP/n9AQKWzwf+OGzG/A++z8DJcj68VFL+BOMDlV8ZGX/z
> 8N25P/pUB3Zvm6sK1oex/x9Cl1ofvQ1CwFob1CPjAyXfM2DcTvoymYtkD+p5nPdD
> JBl0TPawyhyhK2AV09X71Y8N3zKGoxQqg6yCHaJhAKvkWkwwOcxrUzHboDCKP6dz
> C/+hTtxEOSl/mK3pX0mulr/Frp/OKK728Q9IsrSt7D6x54/W6VFVia+vN7I+KdhW
> q/Hhi4jjBFKRbUpNC58fGrwPhKNFMCoq2sPJNi7g7vR0WxVvtkBoHX+6u3znOIc/
> 4R8U7NNUyPkLkW7FzK5sXJxeUCmdTOVtNjP601FNVTENct1bYPV+rQ==
> =vtdZ
> -----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list