[Zope] Finding unused products

Tres Seaver tseaver at palladion.com
Sun Nov 29 16:05:01 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gaute Amundsen wrote:
> On Sun, 2009-11-29 at 12:32 +0100, Jens Vagelpohl wrote:
>> On Nov 29, 2009, at 11:59 , Gaute Amundsen wrote:
>>
>>> Quick question before I reinvent.
>>>
>>> Is there some established way of finding products which have no
>>> instances in zodb, and can be safely removed?
>> No there isn't. You may have to invest some time writing a script that
>>  visits all objects to find out what products they belong to. It may
>>  not be worth the effort.
>>
>> jens
> 
> Unfortunately it has "not been worth the effort" for a number of years,
> but now it has become unavoidable.
> Walking the tree it is then.

You could probably work directly with the pickles way faster than
activating every object in a large site:  look at the 'fsdump' script
for clues.



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksS4f0ACgkQ+gerLs4ltQ5s0wCfdk8Ru7uHUI7Fj7OGjDfcyAla
724An0ZOhZ2qorejVAwUzK2OdhFdPfYv
=quZ0
-----END PGP SIGNATURE-----



More information about the Zope mailing list