You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just looked through "updateOneDoc" in "lib/cb.js". Saw that before each document gets saved it gets queried first and then the new data merged with the existing one.
The reason seems to be to preserve id & type. Is that the only reason or did I overlook something?
Because I do not think it is really necessary for that. The id is given anyway and we also have the model in there alreay. So they can simply be set without the whole querying and merging.
The text was updated successfully, but these errors were encountered:
Wanted to fix that issue together with the cas one but because of the couchbase-bugs I could not. So I did now just commit the change to fix that issue. If interested here is the comit (again no pull request for the same reason as before): janober@7f8078b
Just looked through "updateOneDoc" in "lib/cb.js". Saw that before each document gets saved it gets queried first and then the new data merged with the existing one.
The reason seems to be to preserve id & type. Is that the only reason or did I overlook something?
Because I do not think it is really necessary for that. The id is given anyway and we also have the model in there alreay. So they can simply be set without the whole querying and merging.
The text was updated successfully, but these errors were encountered: