rocksdb/table/plain
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
..
plain_table_bloom.cc Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
plain_table_bloom.h Meta-internal folly integration with F14FastMap (#9546) 2022-04-13 07:34:01 -07:00
plain_table_builder.cc Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
plain_table_builder.h Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
plain_table_factory.cc Added GetFactoryCount/Names/Types to ObjectRegistry (#9358) 2022-05-16 09:44:43 -07:00
plain_table_factory.h Refactor: use TableBuilderOptions to reduce parameter lists (#8240) 2021-04-29 07:00:50 -07:00
plain_table_index.cc Cleanup includes in dbformat.h (#8930) 2021-09-29 04:04:40 -07:00
plain_table_index.h Cleanup includes in dbformat.h (#8930) 2021-09-29 04:04:40 -07:00
plain_table_key_coding.cc Add rate limiter priority to ReadOptions (#9424) 2022-02-16 23:18:14 -08:00
plain_table_key_coding.h Cleanup includes in dbformat.h (#8930) 2021-09-29 04:04:40 -07:00
plain_table_reader.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
plain_table_reader.h Replace GetUserKey with ExtractUserKey (#9664) 2022-03-15 10:02:33 -07:00