Snappy compression is enabled by default but setting it explicitly nevertheless.

This commit is contained in:
Kishore Nallan 2018-05-08 07:52:29 +05:30
parent 46983ba6b4
commit 3cdeff7814
2 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,7 @@
- ~~gzip compress responses~~
- ~~Have a LOG(ERROR) level~~
- ~~Handle SIGTERM which is sent when process is killed~~
- Use snappy compression for storage
- ~~Use snappy compression for storage~~
- Exact search
- NOT operator support
- Log operations

View File

@ -63,6 +63,7 @@ public:
options.write_buffer_size = 4*1048576;
options.max_write_buffer_number = 2;
options.merge_operator.reset(new UInt64AddOperator);
options.compression = rocksdb::CompressionType::kSnappyCompression;
// these need to be high for replication scenarios
options.WAL_ttl_seconds = wal_ttl_secs;