Hi,
Time to time new saved or updated documents do not appear in the couchbase right away…
Is there some parameter to have it saved immediately? Whats the logic behind this?
Hi,
Time to time new saved or updated documents do not appear in the couchbase right away…
Is there some parameter to have it saved immediately? Whats the logic behind this?
There isn’t actually a delay on the upsert itself, the document is immediately available. However, if you are trying to access it via a view, there is a delay.
Views are updated in the following circumstances:
If you’re dealing with N1QL it’s a bit different, but there is a lag updating N1QL indices as well. This can also be controlled with some additional parameters on the QueryRequest object, to get behaviors similar to stale=false on the view request.
I’m not 100% certain, but I believe these rules also apply to the Documents page in the Couchbase Console as well.