Skip to content

Commit

Permalink
disable compression
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
  • Loading branch information
gfukushima committed Sep 2, 2024
1 parent 4391301 commit fa9270e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class KvStoreConfiguration {

public static final int DEFAULT_LEVELDB_BLOCK_SIZE = 4096;

public static final int DEFAULT_LEVELDB_WRITE_BUFFER_SIZE = 4194304;
public static final int DEFAULT_LEVELDB_WRITE_BUFFER_SIZE = 4_194_304;

public static final int DEFAULT_LEVELDB_MAX_OPEN_FILES = 1000;

Expand All @@ -67,7 +67,7 @@ public class KvStoreConfiguration {
/** RocksDb Time to roll a log file (1 day = 3600 * 24 seconds) */
public static final long TIME_TO_ROLL_LOG_FILE = 86_400L;

public static final long ROCKSDB_BLOCK_SIZE = 32768;
public static final long ROCKSDB_BLOCK_SIZE = 32_768;

/* --------------- Safe to Change Properties ------------ */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private static DBOptions createDBOptions(
private static ColumnFamilyOptions createColumnFamilyOptions(
final KvStoreConfiguration configuration, final Cache cache) {
return new ColumnFamilyOptions()
.setCompressionType(CompressionType.LZ4_COMPRESSION)
.setCompressionType(CompressionType.NO_COMPRESSION)
.setTtl(0)
.setTableFormatConfig(createBlockBasedTableConfig(cache));
}
Expand Down

0 comments on commit fa9270e

Please sign in to comment.