MultiGet window set to 16 to avoid memory problems

This commit is contained in:
Andrea Cavalli 2021-09-06 15:54:44 +02:00
parent 16bd3b263b
commit b7d975ccfb

View File

@ -82,7 +82,7 @@ public class LLLocalDictionary implements LLDictionary {
static final int RESERVED_WRITE_BATCH_SIZE = 2 * 1024 * 1024; // 2MiB
static final long MAX_WRITE_BATCH_SIZE = 1024L * 1024L * 1024L; // 1GiB
static final int CAPPED_WRITE_BATCH_CAP = 50000; // 50K operations
static final int MULTI_GET_WINDOW = 500;
static final int MULTI_GET_WINDOW = 16;
static final Duration MULTI_GET_WINDOW_TIMEOUT = Duration.ofSeconds(1);
static final ReadOptions EMPTY_READ_OPTIONS = new UnreleasableReadOptions(new UnmodifiableReadOptions());
static final WriteOptions EMPTY_WRITE_OPTIONS = new UnreleasableWriteOptions(new UnmodifiableWriteOptions());