With the following, my ldapmodify command is still slow. My ldif file has about 5000 entries for users, and 5000 add/modify entries to add that user to a cn with a uniquemember attribute. To make sure everything I have in LDIF overwrites what in ldap, etc.,. I use the following commands:
ldapmodify -c -D "..." -w ... -S outfile -x -r -f ldif ldapmodify -c -D "..." -w ... -x -a -f outfile
What version of OpenLDAP? Your original post doesn't say.
set_flags DB_TXN_NOSYNC set_flags DB_TXN_NOT_DURABLE
set_lg_dir <location> like: set_lg_dir /var/log/bdb
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html