[Zope-dev] RE: [Zope-CMF] Fieldindex searches very slow when anonymous.

Arnar Lundesgaard arnar.lundesgaard@creuna.no
Tue, 9 Apr 2002 11:53:50 +0200


THANK YOU!!!!!!!!!!!!

This worked extremely well, and the site is
almost faster than the squid cache now. :-)

http://www.forskning.no is a major ZOPE site
(for us), that will be released tomorrow noon
local time. This is the first site that uses
our soon to be opensourced TopicMap engine that
builds on CMF. The engine lets CMF handle all=20
Topic Map data items, giving us access to CMF
functionality like versioning and workflow.
It should be opensourced when we have time to
clean it up a bit and document it.


 -  Arnar Lundesgaard



> -----Original Message-----
> From: Tres Seaver [mailto:tseaver@zope.com]
> Sent: 9. april 2002 05:43
> To: Arnar Lundesgaard
> Cc: zope-dev@zope.org
> Subject: Re: [Zope-CMF] Fieldindex searches very slow when anonymous.
>
> What is killing your query is the test for "effective range"=20
> of content.  If
> your site does not use the concept (i.e., all your content=20
> has 'None' for
> both its effective and expires dates), you can apply the=20
> following patch to
> remove the check::
>=20
> -------------- patch starts here ---------------------------------
> --- CMFCore/CatalogTool.py	4 Jan 2002 19:50:04 -0000	1.22
> +++ CMFCore/CatalogTool.py	9 Apr 2002 03:42:14 -0000
> @@ -186,7 +186,7 @@
>           user =3D _getAuthenticatedUser(self)
>           kw[ 'allowedRolesAndUsers' ] =3D=20
> self._listAllowedRolesAndUsers( user )
>=20
> -        if not _checkPermission(
> +        if 0 and not _checkPermission(
>               CMFCorePermissions.AccessInactivePortalContent, self ):
>               base =3D aq_base( self )
>               now =3D DateTime()
> -------------- patch ends here -----------------------------------
>=20
> Tres.
> --=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Tres Seaver                                tseaver@zope.com
> Zope Corporation      "Zope Dealers"       http://www.zope.com
>=20
>=20