-
Notifications
You must be signed in to change notification settings - Fork 587
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
Support "diffing object updates" #2089
Comments
I have been looking into enabling diffed updates for JS, but need input on the API. Our current
|
Other suggestions:
and
|
After discussing with @kraenhansen we ended up with
For the first implementation diffed updates will still be opt-in. The reason is that this is consistent across SDK's. If we want to change it to be the default mode we should adjust it across all SDK's the next time we do a major version upgrade. |
I don't think js has built in enums though. |
It doesn't before ES 6, but my understanding is that by defining it as
It will use the string as the argument value. |
Hm... maybe I'm missing something here. If that's the end user API, I think it looks nice, but I have some concerns about the implementation, which may stem from the fact I'm not overly familiar with plain js. |
"UpdateMode.CheckSameValuesBeforeSet" is a long word, but it doesn't really make it obvious what it does? "Check" doesn't really inform what the action is? Something along the lines of "DontSetValuesAlreadySet" or "DontOverwriteIdenticalValues" or something a bit more clear or simple? |
See Java's implementation here: realm/realm-java#6224
Related Epic: https://github.com/realm/realm-object-store/issues/697
The text was updated successfully, but these errors were encountered: