We plan to allow users to assign timestamps to their data. Users can choose the format/length/encoding of the timestamp, they just need to tell RocksDB how to parse. In order to use the feature, user has to pass a custom as an option to the database during open. Once opened, the timestamp format is fixed unless a full compaction is run. Within one DB, the length of timestamp has to be fixed.

    API

    At present, Get(), Put(), and Write() are supported. Details of the API can be found in db.h. This list is not complete, and we plan to add more API functions in the future.

    When using Put with user timestamp, the user needs to set WriteOptions.timestamp.