Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- extended logging for preload - reduced preload-time for IndexImport_p.java

orbitere22cbaee97a2
diff --git a/htroot/IndexImport_p.java b/htroot/IndexImport_p.java
index 84fe15315..1f6737588 100644
--- a/htroot/IndexImport_p.java
+++ b/htroot/IndexImport_p.java
@@ -97,7 +97,7 @@ public final class IndexImport_p {
if (startImport) {
dbImporter importerThread = switchboard.dbImportManager.getNewImporter(importType);
if (importerThread != null) {
- importerThread.init(new File(importPath), cacheSize, 3000);
+ importerThread.init(new File(importPath), cacheSize, 100);
importerThread.startIt();
}
prop.put("LOCATION","");
diff --git a/source/de/anomic/plasma/plasmaWordIndexAssortment.java b/source/de/anomic/plasma/plasmaWordIndexAssortment.java
index 4cd508e56..81ea5e6a7 100644
--- a/source/de/anomic/plasma/plasmaWordIndexAssortment.java
+++ b/source/de/anomic/plasma/plasmaWordIndexAssortment.java
@@ -115,7 +115,12 @@ public final class plasmaWordIndexAssortment {
// open existing assortment tree file
try {
assortments = new kelondroTree(assortmentFile, bufferSize, preloadTime, kelondroTree.defaultObjectCachePercent);
- if (log != null) log.logConfig("Opened Assortment Database, " + assortments.size() + " entries, width " + assortmentLength + ", " + bufferkb + "kb buffer");
+ if (log != null)
+ log.logConfig("Opened Assortment Database, " +
+ assortments.size() + " entries, width " +
+ assortmentLength + ", " + bufferkb + "kb buffer, " +
+ preloadTime + " ms preloadTime, " +
+ assortments.cacheNodeStatus()[1] + " preloaded");
return;
} catch (IOException e){
serverLog.logSevere("PLASMA", "unable to open assortment database " + assortmentLength + ", creating new: " + e.getMessage(), e);