diff --git a/TODO.md b/TODO.md index 87cd8c58..7065f3e4 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/include/store.h b/include/store.h index ae437878..809fe50e 100644 --- a/include/store.h +++ b/include/store.h @@ -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;