Skip to content

Commit 974646a

Browse files
committed
increase blocksize
1 parent 0024eea commit 974646a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public class ES819TSDBDocValuesFormat extends org.apache.lucene.codecs.DocValues
6666

6767
/**
6868
* These thresholds determine the size of a compressed binary block. We build a new block if the uncompressed data in the block
69-
* is 128k, or if the number of values is 1024. These values are a tradeoff between the high compression ratio and decompression
69+
* is 1MB, or if the number of values is 8192. These values are a tradeoff between the high compression ratio and decompression
7070
* speed of large blocks, and the ability to avoid decompressing unneeded values provided by small blocks.
7171
*/
72-
public static final int BLOCK_BYTES_THRESHOLD = 128 * 1024;
73-
public static final int BLOCK_COUNT_THRESHOLD = 1024;
72+
public static final int BLOCK_BYTES_THRESHOLD = 1024 * 1024;
73+
public static final int BLOCK_COUNT_THRESHOLD = 8192;
7474

7575
// number of documents in an interval
7676
static final int DEFAULT_SKIP_INDEX_INTERVAL_SIZE = 4096;

0 commit comments

Comments
 (0)