Revision 5a2a6483dc23a8854e02984ece3b8d88b783959d authored by Yi Wu on 26 October 2017, 19:19:43 UTC, committed by Facebook Github Bot on 26 October 2017, 19:30:54 UTC
Summary:
Adding the `min_blob_size` option to allow storing small values in base db (in LSM tree) together with the key. The goal is to improve performance for small values, while taking advantage of blob db's low write amplification for large values.

Also adding expiration timestamp to blob index. It will be useful to evict stale blob indexes in base db by adding a compaction filter. I'll work on the compaction filter in future patches.

See blob_index.h for the new blob index format. There are 4 cases when writing a new key:
* small value w/o TTL: put in base db as normal value (i.e. ValueType::kTypeValue)
* small value w/ TTL: put (type, expiration, value) to base db.
* large value w/o TTL: write value to blob log and put (type, file, offset, size, compression) to base db.
* large value w/TTL: write value to blob log and put (type, expiration, file, offset, size, compression) to base db.
Closes https://github.com/facebook/rocksdb/pull/3066

Differential Revision: D6142115

Pulled By: yiwu-arbug

fbshipit-source-id: 9526e76e19f0839310a3f5f2a43772a4ad182cd0
1 parent 9b18cc2
History
File Mode Size
RocksDBCommonHelper.php -rw-r--r-- 11.8 KB
amalgamate.py -rwxr-xr-x 4.6 KB
build_detect_platform -rwxr-xr-x 18.0 KB
cont_integration.sh -rwxr-xr-x 3.4 KB
dependencies.sh -rw-r--r-- 2.0 KB
dependencies_4.8.1.sh -rw-r--r-- 2.1 KB
dockerbuild.sh -rwxr-xr-x 76 bytes
error_filter.py -rw-r--r-- 5.9 KB
fb_compile_mongo.sh -rwxr-xr-x 1.4 KB
fbcode_config.sh -rw-r--r-- 4.5 KB
fbcode_config4.8.1.sh -rw-r--r-- 3.5 KB
format-diff.sh -rwxr-xr-x 3.8 KB
gnu_parallel -rwxr-xr-x 238.6 KB
make_package.sh -rwxr-xr-x 2.9 KB
precommit_checker.py -rwxr-xr-x 5.5 KB
regression_build_test.sh -rwxr-xr-x 11.3 KB
rocksdb-lego-determinator -rwxr-xr-x 19.1 KB
run_ci_db_test.ps1 -rw-r--r-- 13.3 KB
update_dependencies.sh -rwxr-xr-x 3.9 KB
version.sh -rwxr-xr-x 687 bytes

back to top