[Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

Giovanni Maruzzelli maruzz@open4.it
Tue, 26 Jun 2001 18:10:09 +0200


The catalog is a pristine 2.3.3b1 catalog.

We have recreated the catalog from scratch because we tried
manage_convertBTrees , but it don't work for us, it return with an error
(and the same happens with 2.3.3 final):

Error Type: TypeError
Error Value: second argument must be a class


Traceback (innermost last):
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
    (Object: Traversable)
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: manage_convertBTrees)
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: manage_convertBTrees)
  File
/fs1root/zope/Zope-2.3.3b1-src/lib/python/Products/ZCatalog/ZCatalog.py,
line 736, in manage_convertBTrees
    (Object: Traversable)
  File
/fs1root/zope/Zope-2.3.3b1-src/lib/python/Products/ZCatalog/Catalog.py, line
204, in _convertBTrees
  File /fs1root/zope/Zope-2.3.3b1-src/lib/python/SearchIndex/UnTextIndex.py,
line 211, in _convertBTrees
TypeError: (see above)



----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: <tdickenson@geminidataloggers.com>
Cc: "Giovanni Maruzzelli" <maruzz@open4.it>; "Chris McDonough"
<chrism@digicool.com>; <a.deuring@satzbau-gmbh.de>; <zope-dev@zope.org>;
<erik@thingamy.net>; <barry@digicool.com>; <tsarna@endicor.com>
Sent: Tuesday, June 26, 2001 5:59 PM
Subject: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a
solution?)


> Toby Dickenson wrote:
> >
> > >INDEXES:
> > >  PrincipiaSearchSource Text Index 2,524
> > >  autore Keyword Index 4,055
> > >  bflow0 Field Index 4,055
> > >  bflow1 Field Index 4,055
> > >  bflow2 Field Index 4,055
> >
> > Aha! a clue.
> >
> > If that is the output of the 'Indexes' tab then I dont think you are
> > using the newest ZCatalog. A recent release (im not surwe which,
> > 2.3.2?) has a new BTree implementation that reduces bloat by modifying
> > fewer buckets (it also doesnt have the column showing index size)
>
> Has the person concerned run the catalog update tool when they upgraded
their
> Zope version?
>
> cheers,
>
> Chris