Search: takes time of what order?
Ken Murchison
ken at oceana.com
Mon Oct 21 10:46:36 EDT 2002
Ian McDonald wrote:
>
> From: "Ken Murchison" <ken at oceana.com>
> >
> > Ian McDonald wrote:
> > >
> > > Hi,
> > >
> > > Does Cyrus do any indexing or other preparation to reduce the time taken
> to
> > > search large mail collections?
> >
> > Yes, if you create a "squat" index for it, by using the "squatter"
> > tool. Since this only indexes messages currently in the mailbox, you
> > should setup squatter to be an EVENT in cyrus.conf, if the mailbox
> > constantly grows.
>
> So a search on a "squat" index will miss messages added since the most
> recent execution of squatter?
No. It will never miss messages. If its not in the index, it'll search
the message file itself (as if there was no index at all).
> Should Cyrus have any problems executing a SEARCH on a hierarchy of folders,
> some of which have SQUAT indices and some cannot?
No. SEARCH looks for a squat index first, and then falls back to the
"brute force" method.
> Can a SQUAT index be removed simply by deleting the files?
Yes. Just delete cyrus.squat
> (In which case, I'm going to need to add a subroutine to Cyrus that will
> delete a squat index whenever a file changes; or a subroutine to the
> searches that will ignore indices older than the folder itself. Oh, for an
> API :). ).
Why would you want to remove them if your intention is to speed up
SEARCHes?
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
More information about the Info-cyrus
mailing list