Re: Total number of LDAP entries

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

 



Rich Megginson wrote:
> Assuming your entry cache contains every entry (that is, assuming you 
> have enough RAM to cache every entry), you can query the entry cache 
> count and that should be the number of entries in your directory 
> server.  This is the (apparently) undocumented attribute called 
> currentEntryCacheCount in the cn=monitor entry for each database.
Hmm...this is a bit convoluted. You'd have to know the number of entries 
in advance, then make sure the entry cache size was configured to a 
larger number, then perform a search for all entries to force them into 
the cache, and finally read the count. Wouldn't it be easier to just use 
the search output to count the entries ? I suppose if you had a 
gazillion entries, so many that it would take a very long time to send 
them back to a client, then it might be worthwhile. You'd need to 
concoct a search that you knew would touch every entry but would not 
return any of them (a filter that is un-indexed and doesn't match any 
entry would do it).







[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