rocksdb/db/db_impl
Jay Zhuang a3acf2ef87 Add seqno to time mapping (#10338)
Summary:
Which will be used for tiered storage to preclude hot data from
compacting to the cold tier (the last level).
Internally, adding seqno to time mapping. A periodic_task is scheduled
to record the current_seqno -> current_time in certain cadence. When
memtable flush, the mapping informaiton is stored in sstable property.
During compaction, the mapping information are merged and get the
approximate time of sequence number, which is used to determine if a key
is recently inserted or not and preclude it from the last level if it's
recently inserted (within the `preclude_last_level_data_seconds`).

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10338

Test Plan: CI

Reviewed By: siying

Differential Revision: D37810187

Pulled By: jay-zhuang

fbshipit-source-id: 6953be7a18a99de8b1cb3b162d712f79c2b4899f
2022-07-14 21:49:34 -07:00
..
compacted_db_impl.cc Return "invalid argument" when read timestamp is too old (#10109) 2022-06-06 14:36:22 -07:00
compacted_db_impl.h Add API for writing wide-column entities (#10242) 2022-06-25 15:30:47 -07:00
db_impl.cc Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
db_impl.h Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
db_impl_compaction_flush.cc Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
db_impl_debug.cc Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
db_impl_experimental.cc Track SST unique id in MANIFEST and verify (#9990) 2022-05-19 11:04:21 -07:00
db_impl_files.cc Fix race condition between file purge and backup/checkpoint (#10187) 2022-06-23 18:32:25 -07:00
db_impl_open.cc Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
db_impl_readonly.cc Return "invalid argument" when read timestamp is too old (#10109) 2022-06-06 14:36:22 -07:00
db_impl_readonly.h Add API for writing wide-column entities (#10242) 2022-06-25 15:30:47 -07:00
db_impl_secondary.cc Update code comment and logging for secondary instance (#10260) 2022-07-05 10:09:44 -07:00
db_impl_secondary.h Update code comment and logging for secondary instance (#10260) 2022-07-05 10:09:44 -07:00
db_impl_write.cc Add API for writing wide-column entities (#10242) 2022-06-25 15:30:47 -07:00