KeyValue Revision is KeyStore wide? How can we cherry pick from a single key history? #3466
-
Hello,
If you run this super-simple test you get: 1 This means that the "revision" value is not "key-related", but it seems to be "keystore-wide" instead. Is that correct and someway expected? If it is, how can we manage the following scenario: kvStore.put("k1", System.currentTimeMillis()); kvStore.put("kX", System.currentTimeMillis()); etc At this point I get the very last k1 entry and I find the revision == 2345 Now, I'd like the previous 3 values from K1 without selecting all the "max-history" entries. (Assume I set max-history to 64 and I want to avoid this overhead). Unfortunately, I cannot assume 2344 and 2343 are the appropriate revision numbers for K1 to select from its history. More in general, how the method
Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yes, as you say revision is a bucket wide number, so you can't guess what the n-1 revision number is for any given key. Need to do a history call at present. |
Beta Was this translation helpful? Give feedback.
Yes, as you say revision is a bucket wide number, so you can't guess what the n-1 revision number is for any given key. Need to do a history call at present.