- Write a key/value using ExecuteStore command
- I immediately try to get the last inserted value like this:
var view = _instance.GetView(“all_docs”, “all_docs”);
view = view.Stale(StaleMode.False);
var documents = view.Select(GenerateCacheData);
_iterator = documents.GetEnumerator();
The problem is that the view is not yet updated/indexed with the new value.
I have already read this: http://www.couchbase.com/forums/thread/stalefalse-supported
So, how can i be sure that I get the list of all inserted elements in the order of insertion including the last inserted one ?
Also take in consideration that i am forced to use views because of other reasons. One of the reason is that at the second step I don’t know the name of the key that i inserted at the first step.
However, the bottom line is that I want to take inserted keys in the order of insertion but to be sure that i take the last inserted one also. What else can I use if not views ?
Thank you for your effort,