opening of array files at startup time, not when first time the web index is accessed

this speeds up the first search after startup

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4263 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent ca488e03f5
commit a3bfd668aa

@ -130,12 +130,13 @@ public class kelondroCollectionIndex {
// open array files
this.arrays = new HashMap(); // all entries will be dynamically created with getArray()
if (((fileIndexGeneration) || (ramIndexGeneration))) {
if ((fileIndexGeneration) || (ramIndexGeneration)) {
serverLog.logFine("STARTUP", "STARTED INITIALIZATION OF NEW COLLECTION INDEX. THIS WILL TAKE SOME TIME");
openAllArrayFiles(((fileIndexGeneration) || (ramIndexGeneration)), indexOrder);
} else {
if (index == null) index = openIndexFile(path, filenameStub, indexOrder, preloadTime, loadfactor, rowdef);
serverLog.logFine("STARTUP", "OPENING COLLECTION INDEX");
}
// open/create index table
openAllArrayFiles(((fileIndexGeneration) || (ramIndexGeneration)), indexOrder);
if (index == null) index = openIndexFile(path, filenameStub, indexOrder, preloadTime, loadfactor, rowdef);
}

Loading…
Cancel
Save