ldbadd --no-sync implications?

Stefan (metze) Metzmacher metze at samba.org
Thu Mar 3 09:32:19 MST 2011


Hi Michael,

> By the way, adding batches of 1000 users to the group takes longer and long.
> 
> e.g. if I have LDIF files like this:
> 
> dn: CN=TestGroup,CN=Users,DC=example,DC=com
> changetype: modify
> -
> add: member
> member: CN=one,CN=Users,DC=example,DC=com
> -
> add: member
> member: CN=two,CN=Users,DC=example,DC=com
> -
> add: member
> member: CN=three,CN=Users,DC=example,DC=com
> -
> add: member
> member: CN=four,CN=Users,DC=example,DC=com
> -

My ldif looks like this:

dn: CN=TestGroup,CN=Users,DC=example,DC=com
changetype: modify
add: member
member: CN=one,CN=Users,DC=example,DC=com
member: CN=two,CN=Users,DC=example,DC=com
member: CN=three,CN=Users,DC=example,DC=com
member: CN=four,CN=Users,DC=example,DC=com
-

But I guess it doesn't make a difference.

> with 1000 users in each, and then run that through ldbmodify --nosync,
> I get the following times.  As you can see, each batch of 1000 users
> gets slower and slower:

I think I have fixed that with commits:

05088fb855a1fc043c3f75d01742cdbbfbb3330e s4:dsdb/samldb: avoid nested
unindexed searches in samldb_member_check()
60691c13224656e6a889eb01246582f10c056b7b s4:dsdb/samdb: optimize
samldb_prim_group_change()

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110303/e73762c4/attachment.pgp>


More information about the samba-technical mailing list