{"action":"created","issue":{"url":"https://api.github.com/repos/amark/gun/issues/171","repository_url":"https://api.github.com/repos/amark/gun","labels_url":"https://api.github.com/repos/amark/gun/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/amark/gun/issues/171/comments","events_url":"https://api.github.com/repos/amark/gun/issues/171/events","html_url":"https://github.com/amark/gun/issues/171","id":135013222,"number":171,"title":"option to not save and share duplicate data when it's `.put()`","user":{"login":"metasean","id":7552754,"avatar_url":"https://avatars.githubusercontent.com/u/7552754?v=3","gravatar_id":"","url":"https://api.github.com/users/metasean","html_url":"https://github.com/metasean","followers_url":"https://api.github.com/users/metasean/followers","following_url":"https://api.github.com/users/metasean/following{/other_user}","gists_url":"https://api.github.com/users/metasean/gists{/gist_id}","starred_url":"https://api.github.com/users/metasean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metasean/subscriptions","organizations_url":"https://api.github.com/users/metasean/orgs","repos_url":"https://api.github.com/users/metasean/repos","events_url":"https://api.github.com/users/metasean/events{/privacy}","received_events_url":"https://api.github.com/users/metasean/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amark/gun/labels/Core","name":"Core","color":"006b75"},{"url":"https://api.github.com/repos/amark/gun/labels/new","name":"new","color":"333333"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-02-20T00:52:21Z","updated_at":"2016-07-29T21:39:23Z","closed_at":null,"body":"The default behavior for `.put()` is to save and broadcast every single `.put()`.  \r\n\r\nThere are occasions when the data being sent to `.put()` is identical to the existing data (e.g. GPS coordinates), which results in many, nearly duplicated entries and broadcasts (the only difference is the node's state).  \r\n\r\nTherefore, for performance and storage reasons, developer's *may* prefer to *only* save and send *modified* data. \r\n\r\nSuch functionality *could* reek havoc on systems where multiple people are saving data and may loose connectivity.  Therefore, for safety of data and conflict resolution, such functionality should be opt in."},"comment":{"url":"https://api.github.com/repos/amark/gun/issues/comments/236300519","html_url":"https://github.com/amark/gun/issues/171#issuecomment-236300519","issue_url":"https://api.github.com/repos/amark/gun/issues/171","id":236300519,"user":{"login":"thoka","id":56247,"avatar_url":"https://avatars.githubusercontent.com/u/56247?v=3","gravatar_id":"","url":"https://api.github.com/users/thoka","html_url":"https://github.com/thoka","followers_url":"https://api.github.com/users/thoka/followers","following_url":"https://api.github.com/users/thoka/following{/other_user}","gists_url":"https://api.github.com/users/thoka/gists{/gist_id}","starred_url":"https://api.github.com/users/thoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoka/subscriptions","organizations_url":"https://api.github.com/users/thoka/orgs","repos_url":"https://api.github.com/users/thoka/repos","events_url":"https://api.github.com/users/thoka/events{/privacy}","received_events_url":"https://api.github.com/users/thoka/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T21:39:23Z","updated_at":"2016-07-29T21:39:23Z","body":"In addition to true / false a function could be supplied, which would be called with the original and changed values and emits true / false or some measure of the priority of the update.\r\n\r\n "}}
{"actor":{"display_login":"thoka"}}