Re: Conflict resolution / PersistentList

Jason Madden <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
> On Oct 16, 2016, at 12:13, Sean Upton <[email protected]> wrote:
> 
> I am using a PersistentList to maintain an insertion order (LIFO) of identifiers for another unordered (OOBTree-based) data structure.  I'm curious to know if there is any alternative to PersistentList that implements _p_resolveConflict(), say, in a way similar to BTrees buckets?

I'm aware of zc.blist that implements ordered lists in terms of BTrees, so there's a certain amount of conflict resolution possible, but it looks like it doesn't handle all the cases of rebalancing a tree, so it may not suit your needs.

There's also zc.queue which does specifically handle conflicts for the use case of a FIFO queue, but it has a more limited API than a list, and it's FIFO by default (though it looks like you can pull things out LIFO if desired).

https://pypi.python.org/pypi/zc.blist/
https://pypi.python.org/pypi/zc.queue/

~Jason

-- 
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.