Re: too many database conflicts when using ZODB with int ids and indexes

Sanjay Rao <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
If i use ZC.intid in place of zope.intId then how to get rid of these 
subscribers in zope.intid ? You guys must have done this.


  <subscriber handler=".removeIntIdSubscriber" />
  <subscriber handler=".addIntIdSubscriber" />

both the handlers are assuming that KeyReference based int id being used. 
and call getId of ZC.intId by passing a KeyReference object. KeyReference 
object is a wrapper object containing original object as an attribute
 

On Thursday, 10 November 2016 20:33:55 UTC+5:30, Jason Madden wrote:
>
>
> On Nov 10, 2016, at 8:59 AM, Jim Fulton <[email protected] <javascript:>> 
> wrote:
>
> At ZC, we mitigated this problem by storing persistent ids on objects and 
> getting rid of the whole persistent key mechanism (which was rather 
> complicated) and the persistent key -> integer id mapping.  I don't 
> remember if we ever released this, but looking, it doesn't seem we did.
>
> If your conflicts are in the object -> ids mapping (the internal ``ids`` 
> attribute, I'd consider making a version of the utility that got rid of 
> this mapping.
>
>
> Perhaps consider this utility: https://pypi.python.org/pypi/zc.intid 
>

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.