[ 
https://issues.apache.org/jira/browse/DIRSERVER-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Lecharny updated DIRSERVER-1907:
-----------------------------------------
    Component/s: backend

> [perf] Add a replace() method in the index interface
> ----------------------------------------------------
>
>                 Key: DIRSERVER-1907
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1907
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: backend
>    Affects Versions: 2.0.0-M15
>            Reporter: Emmanuel Lecharny
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Currently, when we update the Rdn index, we update it many times (one time 
> per RDN in the entry's DN), and we store a new version of each RDN with an 
> updated count of children and descendant.
> This is done by dropping and adding each RDN, as we don't have a replace 
> method. This is extermelly costly, and we can save a lot of CPU with such a 
> replace method (the RDN index update cost one third of the global cost of an 
> addition, we could save around half of this, so this would give us a 16% 
> speed improvement for updates.)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to