directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ströder <>
Subject Re: Getting total count of entries in a container
Date Thu, 11 Dec 2014 13:27:46 GMT
Emmanuel Lécharny wrote:
> Le 11/12/14 13:21, Michael Ströder a écrit :
>> Jim Willeke wrote:
>>> There is an old draft for:
>>> And I do think this type of attribute does supply value. Many client we
>>> work with monitor container counts for stats and compliance.
>> Not many servers support numSubordinates though. And it's of less value when
>> search scope and search filter come into play.
> The fact is that ApacheDS *does* support numSubordinates. We keep a
> track of the numbe rof direct children and the track of descendant for
> every entry.
> [..]
> Now, it's just counting entries in the DIT, it's not really helpful when
> we have to evaluate the number of entries a search will return.

web2ldap uses numSubordinates to display the number of entries affected by a
subtree deletion. Nothing else.

> All in all, counting the number of elements based on any filter/search
> *will* be a costly operation,

Yes, it is. Therefore web2ldap sends the "counting request" with a short
timeout and I hope that servers will abandon the no-op search request
efficiently. ;-)

Ciao, Michael.

View raw message