--
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 zodb+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pick integer values for keys between BTrees.family64.minint and BTrees.family64.maxint.
Why do you need 128-bit support? If you want to use UUIDs as keys, use an OOBTree, or possibly a composition of pair of LOBTrees (one for UUID string to long index, one for long to object).
data structures specialized to integers, which are faster and use less memory"
, so I would prefer to use a LOBTree than an OOBTree. On Jan 8, 2019, at 10:09 AM, Éloi Rivard <azm...@gmail.com> wrote:This code raises TypeError: integer out of rangeIOBTree()[BTrees.family64.maxint-1] = True
So this one is another problem. As it is written in the bug report, "the BTrees documentation advises that we can also usedata structures specialized to integers, which are faster and use less memory"
, so I would prefer to use a LOBTree than an OOBTree.
You are using the wrong class. Try LOBTree explicitly, not IOBTree.
Then use an LOBTree, and use 64-bit (C long long) integers. It is not unreasonable to suggest that you do not need 128 bit keys.