trying to set a higher priority to the process that is involved in index

export
pull/404/head
Michael Peter Christen 4 years ago
parent c552a2845f
commit e18d0ef544

@ -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 + ")");

@ -238,7 +238,7 @@ public class Table implements Index, Iterable<Row.Entry> {
this.table = null;
}
}
optimize();
//optimize();
// open the file
this.file = new BufferedRecords(new Records(tablefile, rowdef.objectsize), this.buffersize);

Loading…
Cancel
Save