Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: studio-ldapbrowser
    • Labels:
      None

      Description

      We should add a count function that counts the children of an entry or the results of a search. Currently when searching at least the DN and the object classes of an entry are loaded and stored in memory. This is very memory intensive if one just wants to know the number of children.

        Activity

        Hide
        Emmanuel Lecharny added a comment -

        Another possibility would be to rely on the server capability to return this 'count'. ADS can't do that atm, but we are seriously thinking about adding some extendedOperation for that purpose.

        For other LDAP servers, I see no other possibility than storing the count when you get the request result, or to do a special request with the '1.1' as returned attribute, in order to avoid a transfer of all the attributes (costly, and to be double checked ...)

        Show
        Emmanuel Lecharny added a comment - Another possibility would be to rely on the server capability to return this 'count'. ADS can't do that atm, but we are seriously thinking about adding some extendedOperation for that purpose. For other LDAP servers, I see no other possibility than storing the count when you get the request result, or to do a special request with the '1.1' as returned attribute, in order to avoid a transfer of all the attributes (costly, and to be double checked ...)
        Hide
        Stefan Seelmann added a comment -

        There are some non-standard attributes:

        • numSubordinates (implemented by Netscape, Sun, OpenDS)
        • subordinateCount (implemented by Novell)

        There is only an expired draft:
        http://tools.ietf.org/draft/draft-boreham-numsubordinates/draft-boreham-numsubordinates-01.txt

        Show
        Stefan Seelmann added a comment - There are some non-standard attributes: numSubordinates (implemented by Netscape, Sun, OpenDS) subordinateCount (implemented by Novell) There is only an expired draft: http://tools.ietf.org/draft/draft-boreham-numsubordinates/draft-boreham-numsubordinates-01.txt
        Hide
        Alex Karasulu added a comment -

        Each server will probably implement such a count function over a filter. Just the subordinates or descendant count is not enough IMHO. For this reason I think we should be looking at a search request control which makes the search request return immediately with a search response control showing the number of entries that would be returned for the search. The search would not return any entry results.

        Latest changes proposed for ApacheDS system indices allow for easily implementing the count function as a control. Scan count calculations are already performed so we can use this to implement a count control on search instead of performing the search.

        Show
        Alex Karasulu added a comment - Each server will probably implement such a count function over a filter. Just the subordinates or descendant count is not enough IMHO. For this reason I think we should be looking at a search request control which makes the search request return immediately with a search response control showing the number of entries that would be returned for the search. The search would not return any entry results. Latest changes proposed for ApacheDS system indices allow for easily implementing the count function as a control. Scan count calculations are already performed so we can use this to implement a count control on search instead of performing the search.
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Postponed.

        Show
        Pierre-Arnaud Marcelot added a comment - Postponed.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Seelmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development