It is sufficient to setup an index in slapd.conf -- there is no need to create any entries that have a mailAlternateAddress field, just so that you get an index file. slapd seems to understand that since indexing mailAlternateAddress is enabled, and no index file for it exists, that means there are no entries in the database with that attribute. My POP3 lookups, which use the format you describe, are instantaneous.
You do need the entry in slapd.conf, but that is all (at least, with 2.0.15) Dave ----- Original Message ----- From: "James Golovich" <[EMAIL PROTECTED]> To: "David Stults" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 1:41 PM Subject: Re: SUMMARY: Qmail - OpenLDAP performance? > By default qmail-ldap on deliveries searches for > (|(mail=emailaddressspecified)(mailalternateaddress=emailaddressspecified)) > > So if you don't have an index on mailalternateaddress it will be slow when > doing lookups even if you aren't using the mailalternateaddress field > > James > > On Wed, 24 Oct 2001, David Stults wrote: > > > That shouldn't matter. I don't have a mailAlternateAddress index, even > > though it's in slapd.conf, and I still do POP3 lookups quickly (fast enough > > that I can not measure a noticable delay). My OpenLDAP has about 25k > > entries right now. > > > > What kind of CPU usage is OpenLDAP taking, and is it getting any large > > queries from other sources that are not for indexed attributes? If it's > > single threaded (can't see why it would be in a SMP environment, but just in > > case), it'll only answer one query at a time, which hurts performance rather > > dramatically. > > > > Dave > > > > >
