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)