From 6d92ba8a68a1c9f735916892a5c30a72028f4982 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 17 Dec 2021 03:04:01 +0100 Subject: [PATCH] Bugfixes --- .../java/it/cavallium/dbengine/database/disk/LLTempLMDBEnv.java | 2 +- .../dbengine/lucene/searcher/ScoredPagedMultiSearcher.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/it/cavallium/dbengine/database/disk/LLTempLMDBEnv.java b/src/main/java/it/cavallium/dbengine/database/disk/LLTempLMDBEnv.java index 20afc36..c47d0ed 100644 --- a/src/main/java/it/cavallium/dbengine/database/disk/LLTempLMDBEnv.java +++ b/src/main/java/it/cavallium/dbengine/database/disk/LLTempLMDBEnv.java @@ -18,7 +18,7 @@ import static org.lmdbjava.EnvFlags.*; public class LLTempLMDBEnv implements Closeable { private static final long TWENTY_GIBIBYTES = 20L * 1024L * 1024L * 1024L; - private static final int MAX_DATABASES = 1024; + private static final int MAX_DATABASES = 16777216; private final Path tempDirectory; private final Env env; diff --git a/src/main/java/it/cavallium/dbengine/lucene/searcher/ScoredPagedMultiSearcher.java b/src/main/java/it/cavallium/dbengine/lucene/searcher/ScoredPagedMultiSearcher.java index 875a243..b96a8d5 100644 --- a/src/main/java/it/cavallium/dbengine/lucene/searcher/ScoredPagedMultiSearcher.java +++ b/src/main/java/it/cavallium/dbengine/lucene/searcher/ScoredPagedMultiSearcher.java @@ -184,6 +184,7 @@ public class ScoredPagedMultiSearcher implements MultiSearcher { return null; } }) + .subscribeOn(Schedulers.boundedElastic()) .flatMap(cmm -> Flux .fromIterable(indexSearchers) .index()