I am trying to use the Java bindings to implement a sort of layer where I plan to use
SET_VERSIONSTAMPED_KEY extensively in order to maintain historical information. My plan is to write keys consisting of a prefix and versionstamp, and use a reverse range read of keys starting with that prefix in order to find the ‘most recent’ value for the prefix.
Side note: is there a good way to do a reverse range read that is inclusive of the lexicographically-last (first returned) key?
Of course my first try failed due to the obvious attempt to read an unreadable key. However after I called
setReadYourWritesDisable it started working! Then, while reading the documentation for the C API, I noticed it says of
This operation is not compatible with the READ_YOUR_WRITES_DISABLE
transaction optionand will generate an error if used with it.
So I am confused! Is there actually a problem with my approach that I have not yet run into, or is the documentation wrong or somehow not applicable here?