I am facing an issue with the Couchbase INdex update. I am aware that this issue is there in Couchbase where it takes some time to update the view. But is there any option to force this index to update when I perform certain transaction?
Please help me on the below scenario -
- I do an insert on a bucket using the .NET SDK Insert API.
- Then I try to fetch the records using the N1QL query - First time the new record does not show up.
- Then I try once again to fetch the records using the N1QL query - the record shows up.
I do not have any views created on this bucket yet. It has just the #primary default view.
There are going to be scenarios when I want to insert a document and fetch 1000 documents from this bucket. These are large news documents and I dont want to fetch them twice just to refresh my views.