Skip to content

Commit b1e5284

Browse files
committed
Memory Store: change default bufferSize from 1k to 100k, closes #70
1 parent 28b0b5f commit b1e5284

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/ByteBufferStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ByteBufferStore extends AbstractStore<ByteBufferDirectory> {
4545
@Inject public ByteBufferStore(ShardId shardId, @IndexSettings Settings indexSettings) {
4646
super(shardId, indexSettings);
4747

48-
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(1, SizeUnit.KB));
48+
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(100, SizeUnit.KB));
4949
this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB));
5050
this.direct = componentSettings.getAsBoolean("direct", true);
5151
this.warmCache = componentSettings.getAsBoolean("warmCache", true);

modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/HeapStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class HeapStore extends AbstractStore<HeapDirectory> {
4343
@Inject public HeapStore(ShardId shardId, @IndexSettings Settings indexSettings) {
4444
super(shardId, indexSettings);
4545

46-
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(1, SizeUnit.KB));
46+
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(100, SizeUnit.KB));
4747
this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB));
4848
this.warmCache = componentSettings.getAsBoolean("warmCache", true);
4949

0 commit comments

Comments
 (0)