[
https://issues.apache.org/jira/browse/DIRSERVER-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny updated DIRSERVER-1923:
-----------------------------------------
Component/s: mavibot
> [Mavibot Partition] Cache the ParentIdAndRdn index
> --------------------------------------------------
>
> Key: DIRSERVER-1923
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1923
> Project: Directory ApacheDS
> Issue Type: Improvement
> Components: mavibot
> Affects Versions: 2.0.0-M15
> Reporter: Emmanuel Lecharny
> Priority: Major
> Fix For: 2.0.0-RC2
>
>
> When we build the EntryDn, we are fetching the RDN from the RdnIndex
> (AbstractBtreePartition.buildEntryDn() method). This is done by fetchng each
> RDN parent from the entry's RDN :
> do
> {
> ParentIdAndRdn cur = rdnIdx.reverseLookup( parentId );
> ...
> parentId = cur.getParentId();
> }
> while ( !parentId.equals( rootId ) );
> Doing a reverseLookup is a costly operation, we could certainly save a lot of
> CPU if the RDN is cached and if we can fetch the parent RDN from this cache.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]