What is the fastest (performance) way to get the content of a version?

Is there a way at all to get a version directly?
Is there something like it.SeekVersion(key byte, versionNumber uint64) or txn.GetVersion(key byte, versionNumber uint64) (item *Item, err error)

Or does it make no difference in speed, looping and checking the Version number on a KeyIterator?

Hi @veith, If DB is opened in managed mode, you can create a transaction at that version using db.NewTransactionAt(version, false) and then do txn.Get(key). This will return an item <= version.

There is no faster way I see for unmanaged mode. Reading data at some particular timestamp looks like the case for managed DB.

1 Like