Memory Store: change default bufferSize from 1k to 100k, closes #70

This commit is contained in:
kimchy 2010-03-18 17:27:17 +02:00
parent 28b0b5fc30
commit b1e5284a06
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class ByteBufferStore extends AbstractStore<ByteBufferDirectory> {
@Inject public ByteBufferStore(ShardId shardId, @IndexSettings Settings 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.direct = componentSettings.getAsBoolean("direct", true);
this.warmCache = componentSettings.getAsBoolean("warmCache", true);

View File

@ -43,7 +43,7 @@ public class HeapStore extends AbstractStore<HeapDirectory> {
@Inject public HeapStore(ShardId shardId, @IndexSettings Settings 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.warmCache = componentSettings.getAsBoolean("warmCache", true);