[Zope-CMF] Re: [Bug] Re: [Zope] Portal_catalog and Reindex

Dieter Maurer dieter@handshake.de
Sat, 23 Feb 2002 11:53:40 +0100


Please keep questions on the mailing list!

Pascal Samuzeau writes:
 > ...
 > 1 - To re-index my site Zope, it takes a while. Now I'm about 20 mn to
 > re-index. But on my site I have about 1500/2000 hits per day. They do 
 > what they have to do, take inscription, put documents, delete some    
 > others, etc..., they are just working on...                           
 >                                                                       
 > But as I told you, the time to re-index is about 20 mn. How can       
 > re-index when the people are working ? I need to open Zope site to    
 > re-index, I have no other way, I can't stop Zope, because I can't     
 > re-index on it if it's Closed !!!!!                                   
 >                                                                       
 > Have you a way to do it ?                                             
Several parts of a reply:

  1.  Usually, there will not be a problem with reindexing while
      people continue to visit you site.
      There is a paper on "zodb3" on Zope.org that explains how
      Zope handles concurrent access.

  2.  You can automate periodic executions, such a reindexing.
      This way, you can do it when your site is lightly loaded,
      e.g. between 2 and 3 in the night.

      When you are on Unix, you can use the Xron product for this
      purpose. This allows you to manage your periodic
      tasks inside Zope (via a Web based interface).
      Under Windows, you would need to set up an external
      periodic task (with Windows means, I do not know about)
      and use their either XML-RPC or the so called ZClient
      (which is ZPublisher.Client) to execute the operations
      in Zope.

  3.  Why do you think you need to reindex often?

      I only reindex when I add a new index or made strange things
      (like moving things around outside of the official interfaces).
      The stock content classes of CMF handle reindexing automatically.
      You only need to worry about reindexing in special cases.

 > 2 - On my server, I have 5 CMFSite, because we are 5 administrators of
 > 5 differents site Zope. How the catalog working with all the sites ?  
Each CMFSite has its own distinct catalog, unless you do special things.

 > In one word : How works CMF when I have multi-site on one Server ?    
The various sites are independent from one another (until you explicitly
let them share resources, such as the catalog).


Dieter