Consistency and JavaSDK

Maybe it’s a trivial question, but I want to be sure.
I’m using the java sdk and I update some data with a query (cluster.query). I saw that sometimes if i try to get those data with another query, they arent updated, so i used the scanconsistency REQUEST PLUS option.
The question that i have now is, if i use the collection/reactivecollection get with the ID of the documents, are the data always updated? I imagine that the answer is yes

You are correct. RequestPlus waits for the indexing. Using kv operations gets the document itself.

1 Like

Thanks again for the answer

Yes, using collection/reactivecollection.get with the document ID should always return the most recent data. The scanConsistency.REQUEST_PLUS option ensures consistency for queries, but direct get operations typically reflect the latest updates.

“but direct get operations typically reflect the latest updates”

I believe they always reflect the latest updates.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.