You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2013/12/01 19:08:01 UTC
svn commit: r1546831 -
/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
Author: elecharny
Date: Sun Dec 1 18:08:00 2013
New Revision: 1546831
URL: http://svn.apache.org/r1546831
Log:
o No need to drop the parentID from the RdnIndex when updating it, it's already done by the insert operation. This is a net gain in the server peformance (around 10%)
Modified:
directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java?rev=1546831&r1=1546830&r2=1546831&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java Sun Dec 1 18:08:00 2013
@@ -925,8 +925,6 @@ public abstract class AbstractBTreeParti
}
// Inject the modified element into the index
- // we first need to drop it so that the key can be replaced
- rdnIdx.drop( parentId );
rdnIdx.add( parent, parentId );
parentId = parent.getParentId();