directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1383281 - /directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
Date Tue, 11 Sep 2012 08:02:15 GMT
Author: elecharny
Date: Tue Sep 11 08:02:15 2012
New Revision: 1383281

URL: http://svn.apache.org/viewvc?rev=1383281&view=rev
Log:
Reinjected the cache for RDN (not having it causes major slowdown)

Modified:
    directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java

Modified: directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java?rev=1383281&r1=1383280&r2=1383281&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
(original)
+++ directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
Tue Sep 11 08:02:15 2012
@@ -27,7 +27,9 @@ import java.io.IOException;
 
 import javax.naming.NamingException;
 
+import jdbm.helper.MRU;
 import jdbm.recman.BaseRecordManager;
+import jdbm.recman.CacheRecordManager;
 
 import org.apache.directory.server.constants.ApacheSchemaConstants;
 import org.apache.directory.server.i18n.I18n;
@@ -85,7 +87,7 @@ public class JdbmRdnIndex extends JdbmIn
         //System.out.println( "IDX Created index " + path )
         BaseRecordManager base = new BaseRecordManager( path );
         base.disableTransactions();
-        recMan = base; //new CacheRecordManager( base, new MRU( cacheSize ) );
+        recMan = new CacheRecordManager( base, new MRU( cacheSize ) );
 
         try
         {



Mime
View raw message