{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1061","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1061/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1061/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1061/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1061","id":128594424,"number":1061,"title":"Bug on to-many relationships with Core Data context","user":{"login":"cflorion","id":870684,"avatar_url":"https://avatars.githubusercontent.com/u/870684?v=3","gravatar_id":"","url":"https://api.github.com/users/cflorion","html_url":"https://github.com/cflorion","followers_url":"https://api.github.com/users/cflorion/followers","following_url":"https://api.github.com/users/cflorion/following{/other_user}","gists_url":"https://api.github.com/users/cflorion/gists{/gist_id}","starred_url":"https://api.github.com/users/cflorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cflorion/subscriptions","organizations_url":"https://api.github.com/users/cflorion/orgs","repos_url":"https://api.github.com/users/cflorion/repos","events_url":"https://api.github.com/users/cflorion/events{/privacy}","received_events_url":"https://api.github.com/users/cflorion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-25T17:32:10Z","updated_at":"2016-01-28T18:05:05Z","closed_at":null,"body":"Since we started working with Couchbase-lite-ios + CBLIncrementalStore, we've had the same problem: To-many relationships are sometimes not up-to-date in the core data contexts. We decided to add a sample app in Couchbase-lite-ios project in order to isolate this problem.\r\n\r\nYou can test demo app with https://github.com/couchbase/couchbase-lite-ios/pull/1060\r\n\r\nYou tap quickly several times on the Add button (we do batches of 10 taps), and after a few tries, the count of players on the right won't be in sync on a team."},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/176308948","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1061#issuecomment-176308948","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1061","id":176308948,"user":{"login":"pasin","id":801454,"avatar_url":"https://avatars.githubusercontent.com/u/801454?v=3","gravatar_id":"","url":"https://api.github.com/users/pasin","html_url":"https://github.com/pasin","followers_url":"https://api.github.com/users/pasin/followers","following_url":"https://api.github.com/users/pasin/following{/other_user}","gists_url":"https://api.github.com/users/pasin/gists{/gist_id}","starred_url":"https://api.github.com/users/pasin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasin/subscriptions","organizations_url":"https://api.github.com/users/pasin/orgs","repos_url":"https://api.github.com/users/pasin/repos","events_url":"https://api.github.com/users/pasin/events{/privacy}","received_events_url":"https://api.github.com/users/pasin/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T18:05:05Z","updated_at":"2016-01-28T18:05:05Z","body":"That is the code for optimizing the performance. @mastohhh Does it help the issue if you take that piece of code out?"}}