foundationdb

Can I get a timestamp from a FoundationDB versionstamp?


FoundationDB has versionstamps, ten-byte, unique, monotonically (but not sequentially) increasing values for each committed transaction.

Can I get a timestamp (when the transaction was committed) from that?


Solution

  • Under "normal" (non-failure) conditions, FoundationDB database versions advance at a rate of approximately one million per second. However the rate is not guaranteed to be uniform, so versions cannot be effectively used as a clock.