Avoid a lookup in CollectiveAttributeService
--------------------------------------------

                 Key: DIRSERVER-1051
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1051
             Project: Directory ApacheDS
          Issue Type: Improvement
    Affects Versions: 1.5.1
            Reporter: Emmanuel Lecharny
             Fix For: 1.5.2


To process collectiveAttributes, the service does a lookup searcing for the 
"collectiveAttributeSubentries" operational attribute. This lookup cost around 
17% of the global search time, and can be avoided, as we can add this attribute 
to the list of returned attribute in the original lookup, instead of doing a 
specific lookup for this attribute.

We have two cases :
- the "collectiveAttributeSubentries" does not exist : net gain will be 17%
- the "collectiveAttributeSubentries" exists : we will have to remove it from 
the entry and process the collective attributes to add them to the entry. The 
gain will still be enormous (less than 17%, but very close)

In the second case, we will just have to be sure to return this attrinute to 
the user who has specifically requested it into the original search request.

The gain will be major.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to