RE: [ZODB-Dev] OID length

2005-12-09 Thread Tim Peters
[Florent Guillaume] I know this has been raised several times in the past, but I'm not sure of all the details... You should believe whatever Jim tells you ;-) What layer of ZODB, if any, has a restriction that OIDs be 8-byte strings. Is it the persistence module? Or just FileStorage?

Re: [ZODB-Dev] OID length

2005-12-09 Thread Jim Fulton
Tim Peters wrote: [Florent Guillaume] I know this has been raised several times in the past, but I'm not sure of all the details... You should believe whatever Jim tells you ;-) Hey, what's the wink for? What layer of ZODB, if any, has a restriction that OIDs be 8-byte strings. Is it

RE: [ZODB-Dev] OID length

2005-12-09 Thread Tim Peters
... [Tim] You should believe whatever Jim tells you ;-) [Jim] Hey, what's the wink for? I was just flirting with Florent ;-) ... I thought this was settled in: http://mail.zope.org/pipermail/zodb-dev/2005-March/008593.html which also mentions the requirement that oids must have len

RE: [ZODB-Dev] OID length

2005-12-09 Thread Tim Peters
[Florent Guillaume] Oh I agree, but if my storage (think SQL) has internally other kinds of identifiers, like autoincremented integer primary keys, and several tables depending on object kind, I want to reuse its concepts and pack them into an oid like 'footable_12345'. I probably would not.

Re: [ZODB-Dev] OID length

2005-12-09 Thread Shane Hathaway
Tim Peters wrote: Some auxiliary code would definitely break if they weren't strings. For example, ZEO cache tracing has its own trace-file format, which originally blew up left and right when Shane tried to use it with APE. That got generalized (and, alas, the trace files got bigger) to live

RE: [ZODB-Dev] OID length

2005-12-09 Thread Dieter Maurer
Tim Peters wrote at 2005-12-9 10:46 -0500: ... I'm not sure where the code actually relies on stringness The cPickleCache explicitely checks for stringness. Not, that this were necessary. It just does. -- Dieter ___ For more information about ZODB,

RE: [ZODB-Dev] OID length

2005-12-09 Thread Tim Peters
[Shane Hathaway] FWIW: Ape still uses variable length strings. That's OK! The OIDs shrank in size because they used to contain the object's physical path, but that turned out to play bad tricks with copy/paste, A cautionary tale about getting too fancy with oids ;-) so now OIDs are usually

Re: [ZODB-Dev] OID length

2005-12-09 Thread Shane Hathaway
Tim Peters wrote: [Shane Hathaway] It can do this because it has to provide its own DB and Connection objects anyway. I trust that's for more reasons than _just_ because it doesn't want to use '\0'*8 as the root-object oid. It's for uniformity. In Ape, the strategy for choosing OIDs is