[ZODB-Dev] Storage keys via ZEO?

Vladimir Voznesensky vovic at smtp.ru
Sat Sep 6 06:32:36 EDT 2003


Christian Reis wrote:

>Is there a way to list all the OIDs in a storage while connecting
>through a ZEO ClientStorage? 
>
>I'm aware that there isn't a storage-independent function that grabs
>keys, but it would be nice to have one. Do others agree?
>
>(I ran into this while trying to purge my storage of references to
>classes that don't exist in code anymore -- are there better ways to
>find out if we have dangling references in our storage?)
>  
>
A brain-explode situation is possible: Imagine that you have removed 
some objects and created anothers with OIDs of dissapered ones. You 
cannot understand, are objects old or new...
You must, at minimum, use unique identifiers to solve this very common 
problem.
The OIDs can act just as a hint.
VV







More information about the ZODB-Dev mailing list