directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] [Created] (DIRSERVER-1923) [Mavibot Partition] Cache the ParentIdAndRdn index
Date Mon, 02 Dec 2013 05:28:35 GMT
Emmanuel Lecharny created DIRSERVER-1923:

             Summary: [Mavibot Partition] Cache the ParentIdAndRdn index
                 Key: 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 :

                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

View raw message