Memory Store: change default bufferSize from 1k to 100k, closes #70
This commit is contained in:
parent
28b0b5fc30
commit
b1e5284a06
|
@ -45,7 +45,7 @@ public class ByteBufferStore extends AbstractStore<ByteBufferDirectory> {
|
||||||
@Inject public ByteBufferStore(ShardId shardId, @IndexSettings Settings indexSettings) {
|
@Inject public ByteBufferStore(ShardId shardId, @IndexSettings Settings indexSettings) {
|
||||||
super(shardId, indexSettings);
|
super(shardId, indexSettings);
|
||||||
|
|
||||||
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(1, SizeUnit.KB));
|
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(100, SizeUnit.KB));
|
||||||
this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB));
|
this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB));
|
||||||
this.direct = componentSettings.getAsBoolean("direct", true);
|
this.direct = componentSettings.getAsBoolean("direct", true);
|
||||||
this.warmCache = componentSettings.getAsBoolean("warmCache", true);
|
this.warmCache = componentSettings.getAsBoolean("warmCache", true);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class HeapStore extends AbstractStore<HeapDirectory> {
|
||||||
@Inject public HeapStore(ShardId shardId, @IndexSettings Settings indexSettings) {
|
@Inject public HeapStore(ShardId shardId, @IndexSettings Settings indexSettings) {
|
||||||
super(shardId, indexSettings);
|
super(shardId, indexSettings);
|
||||||
|
|
||||||
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(1, SizeUnit.KB));
|
this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(100, SizeUnit.KB));
|
||||||
this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB));
|
this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB));
|
||||||
this.warmCache = componentSettings.getAsBoolean("warmCache", true);
|
this.warmCache = componentSettings.getAsBoolean("warmCache", true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue