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

Jürgen Kartnaller juergen at kartnaller.at
Thu Jun 28 01:43:44 EDT 2007



Gary Poster wrote:
> 
> On Jun 27, 2007, at 12:21 PM, Jürgen Kartnaller wrote:
> 
>> We store >100K relations this way.
> 
> Cool.
> 
>> ZODB loads the referenced objects on demand.
> 
> Very true.
> 
> Additionally, I imagine Jürgen is using integer tokens, such as intids, 
> to represent the objects within the index.

yes

   Using that approach in
> particular, you should get the best results.  The 
> zc.relationship.intid.Container factory creates a container like this, 
> for instance.
> 
> Gary
> 
>>
>> 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-----
>>
>> _______________________________________________
>> Zope3-dev mailing list
>> Zope3-dev at zope.org
>> Unsub: http://mail.zope.org/mailman/options/zope3-dev/gary%40zope.com
>>
> 



More information about the Zope3-dev mailing list