diff --git a/htroot/IndexControlRWIs_p.html b/htroot/IndexControlRWIs_p.html index ee2ca7f5c..e292fd8d8 100644 --- a/htroot/IndexControlRWIs_p.html +++ b/htroot/IndexControlRWIs_p.html @@ -40,10 +40,10 @@
public static final String DBFILE_CRAWL_ROBOTS = "crawlRobotsTxt.db"
* Name of the file containing the database holding all robots.txt
-entries of the lately crawled domains
public static final String DBFILE_USER = "DATA/SETTINGS/user.db"
Path to the user-DB, beginning from the YaCy-installation's top-folder. It holds all rights the created diff --git a/source/de/anomic/yacy/yacyCore.java b/source/de/anomic/yacy/yacyCore.java index 6f29c20ec..e763ea8dd 100644 --- a/source/de/anomic/yacy/yacyCore.java +++ b/source/de/anomic/yacy/yacyCore.java @@ -134,14 +134,13 @@ public class yacyCore { long memDHT_time = Long.parseLong(switchboard.getConfig("ramCacheDHT_time", "1000")); seedDB = new yacySeedDB( sb, - new File(yacyDBPath, "seed1.new.db"), - new File(yacyDBPath, "seed1.old.db"), - new File(yacyDBPath, "seed1.pot.db"), + new File(yacyDBPath, "seed2.new.db"), + new File(yacyDBPath, "seed2.old.db"), + new File(yacyDBPath, "seed2.pot.db"), memDHT_time); // create or init news database - long memNews_time = Long.parseLong(switchboard.getConfig("ramCacheNews_time", "1000")); - newsPool = new yacyNewsPool(yacyDBPath, memNews_time); + newsPool = new yacyNewsPool(yacyDBPath); loadSeedUploadMethods(); diff --git a/source/de/anomic/yacy/yacyNewsDB.java b/source/de/anomic/yacy/yacyNewsDB.java index 2fe9babb4..a36957292 100644 --- a/source/de/anomic/yacy/yacyNewsDB.java +++ b/source/de/anomic/yacy/yacyNewsDB.java @@ -50,30 +50,28 @@ import java.io.UnsupportedEncodingException; import java.util.Iterator; import de.anomic.kelondro.kelondroBase64Order; -import de.anomic.kelondro.kelondroCache; +import de.anomic.kelondro.kelondroEcoTable; import de.anomic.kelondro.kelondroException; import de.anomic.kelondro.kelondroIndex; import de.anomic.kelondro.kelondroRow; -import de.anomic.kelondro.kelondroTree; import de.anomic.server.serverCodings; import de.anomic.server.serverDate; public class yacyNewsDB { private File path; - private long preloadTime; protected kelondroIndex news; - public yacyNewsDB(File path, long preloadTime) { + public yacyNewsDB(File path) { this.path = path; - this.preloadTime = preloadTime; - this.news = new kelondroCache(kelondroTree.open(path, true, preloadTime, yacyNewsRecord.rowdef)); + this.news = new kelondroEcoTable(path, yacyNewsRecord.rowdef, kelondroEcoTable.tailCacheUsageAuto, 10, 0); + //this.news = new kelondroCache(kelondroTree.open(path, true, preloadTime, yacyNewsRecord.rowdef)); } private void resetDB() { try {close();} catch (Exception e) {} if (path.exists()) path.delete(); - this.news = new kelondroCache(kelondroTree.open(path, true, preloadTime, yacyNewsRecord.rowdef)); + this.news = new kelondroEcoTable(path, yacyNewsRecord.rowdef, kelondroEcoTable.tailCacheUsageAuto, 10, 0); } public void close() { diff --git a/source/de/anomic/yacy/yacyNewsPool.java b/source/de/anomic/yacy/yacyNewsPool.java index 98d6a8da6..e4f99dc77 100644 --- a/source/de/anomic/yacy/yacyNewsPool.java +++ b/source/de/anomic/yacy/yacyNewsPool.java @@ -265,8 +265,8 @@ public class yacyNewsPool { private int maxDistribution; - public yacyNewsPool(File yacyDBPath, long preloadTime) { - newsDB = new yacyNewsDB(new File(yacyDBPath, "news1.db"), preloadTime); + public yacyNewsPool(File yacyDBPath) { + newsDB = new yacyNewsDB(new File(yacyDBPath, "news2.db")); outgoingNews = new yacyNewsQueue(new File(yacyDBPath, "newsOut1.stack"), newsDB); publishedNews = new yacyNewsQueue(new File(yacyDBPath, "newsPublished1.stack"), newsDB); incomingNews = new yacyNewsQueue(new File(yacyDBPath, "newsIn1.stack"), newsDB); diff --git a/yacy.init b/yacy.init index 384b5b38e..47deece72 100644 --- a/yacy.init +++ b/yacy.init @@ -627,9 +627,6 @@ ramCacheWiki_time = 500 # ram cache for blog.db ramCacheBlog_time = 500 -# ram cache for news1.db -ramCacheNews_time = 1000 - # ram cache for robotsTxt.db ramCacheRobots_time = 0