-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View doesn't work at the very beginning #117
Comments
one case: if you calling model.destoryAll(), then create data. the view cannot get the updated data unless you input stale:1 option |
@ChopperLee2011 This is the designed behavior of couchbase: https://docs.couchbase.com/server/4.1/developer-guide/views-operation.html. |
@xavierchow I want to get correct data when I use the Since cc @superbogy |
It depends on your use case,
Surely, we can talk about details tmr if you want. |
As Couchbase’s official description of view index update strategy, it is hard to trigger view index refresh for most projects.
About updateInterval: Here is my solution: fake code for the function
It looks good compatible with the early version |
For some special projects we can deliver an option like |
This is a false assumption, sometimes we might have massive write operations in a short time, |
@ChopperLee2011 could you grab this? |
@xavierchow sure |
preset
query data by view method, getConnector().view( viewName, modelName), it always returns [], unless I trigger that view query on the admin UI or add { stale: 1 } in the method, then I can get multiple records as expected.
My local couchbase version is Community Edition 5.1.1 build 5723 and the cluster is working as normal, only > 80% RAM using.
the issue cannot be produced once the view is triggered, which means you can delete and rebuild view can work as usual.
The text was updated successfully, but these errors were encountered: