[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapindex question (was slapcat question)

Quanah Gibson-Mount wrote:

--On Tuesday, February 17, 2004 2:32 PM -0500 "Tibbetts, Ric" <ric.tibbetts@ngc.com> wrote:

Quanah Gibson-Mount wrote:

--On Tuesday, February 17, 2004 9:24 AM -0500 "Tibbetts, Ric"
<ric.tibbetts@ngc.com> wrote:

slow. My appologies for not being clearer on that issue earlier.
So I am left to assume that slapadd does not handle indexing?

slapadd always creates indexes for me.... What slapd.conf did you tell slapadd to use? What options did you have in your DB_CONFIG file? Did you inadvertently turn indexing off while doing the slapadd? Did your slapd.conf not have any indexes defined in it at the time you did the slapadd?

I didn't specify a slapd.conf to slapadd. I "assumed" that it would use the defautl. And in all other respects, the behaviour bore that out, as it created the database in the appropriate location. My slapd.conf does have the appropriate indexes defined in it. I was surprised that running slapindex had such a large affect on the performance.

Knowing the DB_CONFIG bits might be useful. I never specifically indicate the slapd.conf either, but since you are having odd results, I thought I'd ask. ;)

To be honest, not (at this point) convinced that it's even reading the DB_CONFIG file.
I dropped it in the "home" directory per the instructions. So it's sitting in /opt/db-4.2.52
But I have specified:
set_lg_dir /opt/openldap/var/bdb-logs

Yet, no logs are ever created in that location.
So, now, I wonder if I even have this set up right.

In any event, the contents of the DB_CONFIG are:
# Set the database in memory cache size.
set_cachesize   0       52428800        0

# Set database flags.
set_flags       DB_TXN_NOSYNC

# Set log values.
set_lg_regionmax        1048576
set_lg_max              10485760
set_lg_bsize            2097152
set_lg_dir              /opt/openldap/var/bdb-logs

# Set temporary file creation directory.
set_tmp_dir             /tmp

Pretty basic.