Comment 5 for bug 16317

Revision history for this message
In , Torsten Landschoff (torsten) wrote : Re: Bug#304735: slapd 2.2.23 database corruption

On Thu, Apr 14, 2005 at 09:52:39PM -0700, Steve Langasek wrote:
> > I loathe BDB for the times it takes for massive adds/modifies.
> > Even with slapadd, which takes about 2 minutes to load the entire DB
> > using ldbm as backend, but about 50 minutes with BDB.
>
> OpenLDAP 2.2 includes a '-q' option to slapadd that makes the load time much
> quicker by disabling checks that are unnecessary while loading a fresh db.
> This option will be enabled by default on database reloads in the slapd
> install scripts.

This -q option does not really make a big difference. Speed normally
greatly improves when running slapadd with the option

 set_flags DB_TXN_NOSYNC

in the DB_CONFIG file. That file is BTW essential for good bdb
operation as the defaults don't work for real directories.

Greetings

 Torsten