--On Friday, October 10, 2008 4:14 PM +0100 Gavin Henry <[EMAIL PROTECTED]> wrote:


----- "Quanah Gibson-Mount" <[EMAIL PROTECTED]> wrote:

--On Friday, October 10, 2008 5:39 PM +0300 ELCIN HAKTANIR
<[EMAIL PROTECTED]> wrote:

>
> Question1:
> ---------------
> Is it rational that slapadd took 31 minutes for 100,000
entries(23Kbyte
> per subscriber i guess) without index.?
> I think it is so slow.isn't it?
> What have i done wrong then?Could you please help to reduce this
time ?

Verify your DB_CONFIG file.  Set the tool-threads value in slapd.conf,

assuming OpenLDAP 2.3 or later.  Don't use debug flags with slapadd.
Also
the disk speed is going to have an impact.

Also see the -q flag:

-q     enable quick (fewer integrity checks) mode.  Does fewer
consistency checks on the input data, and no consistency checks when
writing the database.  Improves the load time but if any errors or
interruptions occur the resulting database will be unusable.

His example shows he was already using it. ;)

/usr/local/sbin/slapadd -l /usr/local/etc/openldap/ldifs/subscribersPart100.ldif -f /usr/local/etc/openldap/slapd.conf -b o=sdftest -d 256 -q


--Quanah

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Reply via email to