From e18d0ef5443a3b08c28c5245b15ea569d7f83540 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 9 Mar 2021 00:04:05 +0100 Subject: [PATCH] trying to set a higher priority to the process that is involved in index export --- .../cora/federate/solr/connector/AbstractSolrConnector.java | 2 ++ source/net/yacy/kelondro/table/Table.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/cora/federate/solr/connector/AbstractSolrConnector.java b/source/net/yacy/cora/federate/solr/connector/AbstractSolrConnector.java index 1b5ece1b1..e57815f8f 100644 --- a/source/net/yacy/cora/federate/solr/connector/AbstractSolrConnector.java +++ b/source/net/yacy/cora/federate/solr/connector/AbstractSolrConnector.java @@ -368,6 +368,8 @@ public abstract class AbstractSolrConnector implements SolrConnector { final Thread t = new Thread() { @Override public void run() { + // CPU-intensive tasks will be performed when accessing the solr index because there decompression of content happens + this.setPriority(Thread.MAX_PRIORITY); try { for (String querystring: querystrings) { this.setName("AbstractSolrConnector:concurrentIDsByQueries(" + querystring + ")"); diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java index a9d811913..27d1f2aa1 100644 --- a/source/net/yacy/kelondro/table/Table.java +++ b/source/net/yacy/kelondro/table/Table.java @@ -238,7 +238,7 @@ public class Table implements Index, Iterable { this.table = null; } } - optimize(); + //optimize(); // open the file this.file = new BufferedRecords(new Records(tablefile, rowdef.objectsize), this.buffersize);