[ 
https://issues.apache.org/jira/browse/DIRSERVER-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15181673#comment-15181673
 ] 

Emmanuel Lecharny commented on DIRSERVER-2129:
----------------------------------------------

A better solution : add a method in the BtreePartition that returns those two 
values. It will be invoked in the {{OperationalIntecreptor}} if those values 
are requested. That will not impact any other code, and it will cost only for 
the requests looking for those values.

> Add the number of descendant and the number of children to entries
> ------------------------------------------------------------------
>
>                 Key: DIRSERVER-2129
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2129
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M21
>            Reporter: Emmanuel Lecharny
>             Fix For: 2.0.0-M22
>
>
> We do have this information in the database, associated with the 
> ParentIdAndRdn, it would be interesting to add them as operational attributes 
> to any entry pulled from the database.
> It will require a bit of refactoring of the 
> {{AbstractBtreePartition.buildEntryDn()}} method, because we cache the DN to 
> avoid pulling the information everytime.
> Another possibility is to get those 2 values only if required.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to