slow mass deletion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dirk Kastens wrote:
> Hi,
>
> I'm using fedora-ds-1.0.2-1.RHEL4.
> When I try to delete a whole branch in my ldap tree that contains
> several thousand entries, the deletion is extremely slow. The server
> needs about 10 seconds to delete a single entry. I can watch the
> progress in the server's logfiles. Deleting the branch will take nearly
> a day in my case. It doesn't matter if I use ldapdelete, ldapmodify with
> an ldif file as input, or the server console.
> My IBM directory server only needs a few seconds to delete a whole
> branch. How can I speed up the deletion?
Fedora DS checks for referential integrity upon deletion e.g. when you 
delete a user, FDS searches for all groups which contain that user, and 
removes that user from those groups.  This is normally the cause of slow 
deletions, especially when the attributes that it uses are not indexed.  
By default it uses these attributes: member, uniquemember, owner, seeAlso.

You have a couple of options.  If you care about referential integrity, 
you will need to create presence and equality indexes for the above 
listed attributes.  If you don't care about referential integrity, you 
can simply disable that plug-in.

If this still doesn't get the delete performance you require, the other 
option is to just export your data to LDIF, use sed/awk/perl to remove 
the entries you want to remove, then reimport.  While not ideal, this 
will be extremely fast.
>
> Regards,
> Dirk
>
> -- 
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20060622/0ee1e143/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux