You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/12/02 06:28:35 UTC

[jira] [Created] (DIRSERVER-1923) [Mavibot Partition] Cache the ParentIdAndRdn index

Emmanuel Lecharny created DIRSERVER-1923:
--------------------------------------------

             Summary: [Mavibot Partition] Cache the ParentIdAndRdn index
                 Key: DIRSERVER-1923
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1923
             Project: Directory ApacheDS
          Issue Type: Improvement
    Affects Versions: 2.0.0-M15
            Reporter: Emmanuel Lecharny
             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
(v6.1#6144)