In the discussion, Gopher mentioned the usage of timestamp or epoch for maintaining a consistent view of data on top of MVCC. Tianyi Zhuang added that epoch is a coarse-grained version. Can you explain the role of timestamp or epoch in this context?
Gopher
Asked on Dec 30, 2022
Example:
# Using timestamp for MVCC
timestamp = get_current_timestamp()
# Using epoch for MVCC
epoch = get_current_epoch()