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

Re: No such Object

> From:    "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
> To:      William Green <green@mail.utexas.edu>

> Try disabling write sync and using a RAM disk for DB
> during the ldapadd.  After ldapadd finishing, shutdown
> slapd, move the DB to a hard drive, reenable write sync,
> restart slapd.

I would also suggest doing the initial load with indexing completely
disabled.  Once the ldapadd has completed, stop slapd, dump the
database to an ldif, enable indexing in slapd.conf and create the
indexes by hand.   E.g.

	ldbmcat id2entry.dbb > dump.ldif
	foreach i ( `grep ^index slapd.index.conf | awk '{ print $2 }'` )
	    ldif2index -i dump.ldif $i &

slapd creates it's indexes with a single thread.  By creating the
indexes in parallel as above, you radically decrease the load time.

In OpenLDAP 1.2.8, we load >220K records in this fashion in about one
hour.  OpenLDAP 1.2.9 seems somewhat slower, but we haven't done actual