rocksdb/utilities/simulator_cache
haoyuhuang e648c1d9eb Cache simulator: Optimize hybrid row-block cache. (#5616)
Summary:
This PR optimizes the hybrid row-block cache simulator. If a Get request hits the cache, we treat all its future accesses as hits.

Consider a Get request (no snapshot) accesses multiple files, e.g, file1, file2, file3. We construct the row key as "fdnumber_key_0". Before this PR, if it hits the cache when searching the key in file1, we continue to process its accesses in file2 and file3 which is unnecessary.

With this PR, if "file1_key_0" is in the cache, we treat all future accesses of this Get request as hits.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5616

Differential Revision: D16453187

Pulled By: HaoyuHuang

fbshipit-source-id: 56f3169cc322322305baaf5543226a0824fae19f
2019-07-29 10:58:15 -07:00
..
cache_simulator_test.cc Cache simulator: Optimize hybrid row-block cache. (#5616) 2019-07-29 10:58:15 -07:00
cache_simulator.cc Cache simulator: Optimize hybrid row-block cache. (#5616) 2019-07-29 10:58:15 -07:00
cache_simulator.h Cache simulator: Optimize hybrid row-block cache. (#5616) 2019-07-29 10:58:15 -07:00
sim_cache_test.cc Per-thread unique test db names (#4135) 2018-07-13 17:27:39 -07:00
sim_cache.cc Export Cache::GetCharge (#5476) 2019-06-18 17:35:41 -07:00