Limit db threads to 6 max threads

This commit is contained in:
Andrea Cavalli 2021-03-17 02:41:31 +01:00
parent 9fc58eae2b
commit 66bd00b352

View File

@ -82,7 +82,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
if (lowMemory) {
this.dbScheduler = lowMemorySupplier.get();
} else {
this.dbScheduler = Schedulers.newBoundedElastic(Schedulers.DEFAULT_BOUNDED_ELASTIC_SIZE,
this.dbScheduler = Schedulers.newBoundedElastic(6,
Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE,
"db-" + name,
60,