{"action":"created","issue":{"url":"https://api.github.com/repos/Roobiq/RBQFetchedResultsController/issues/60","labels_url":"https://api.github.com/repos/Roobiq/RBQFetchedResultsController/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/Roobiq/RBQFetchedResultsController/issues/60/comments","events_url":"https://api.github.com/repos/Roobiq/RBQFetchedResultsController/issues/60/events","html_url":"https://github.com/Roobiq/RBQFetchedResultsController/issues/60","id":128679073,"number":60,"title":"Upon RLMObject mutation, UI gets blocked completely","user":{"login":"haitham-reda","id":1150490,"avatar_url":"https://avatars.githubusercontent.com/u/1150490?v=3","gravatar_id":"","url":"https://api.github.com/users/haitham-reda","html_url":"https://github.com/haitham-reda","followers_url":"https://api.github.com/users/haitham-reda/followers","following_url":"https://api.github.com/users/haitham-reda/following{/other_user}","gists_url":"https://api.github.com/users/haitham-reda/gists{/gist_id}","starred_url":"https://api.github.com/users/haitham-reda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haitham-reda/subscriptions","organizations_url":"https://api.github.com/users/haitham-reda/orgs","repos_url":"https://api.github.com/users/haitham-reda/repos","events_url":"https://api.github.com/users/haitham-reda/events{/privacy}","received_events_url":"https://api.github.com/users/haitham-reda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T00:06:26Z","updated_at":"2016-01-26T00:09:47Z","closed_at":null,"body":"hi @bigfish24 ,\r\nCurrently i'm using `RBQFetchedResultsController` in a project, all went smoothly except one issue i have right now, in one `viewController` i have contains a `tableView` which shows too many objects ( 250+ ) and those objects are fetched via RBQFRC , now when i modify an object to mark as favorite, i get the whole UI freezing for ~3 second and then becomes responsive again, i'm using:\r\n```\r\nRLMRealm *rlm = [RLMRealm defaultRealm];\r\n[rlm beginWriteTransaction];\r\n[objectToFavorite changeWithNotification:^(ObjectSubclass *__object){\r\n         __object.favorite = !__object.favorite;\r\n}];\r\n[rlm commitWriteTransaction];\r\n```\r\nFreeze time increases as number of objects go up, so any suggestion how to avoid blocking the UI ?\r\nThank you"},"comment":{"url":"https://api.github.com/repos/Roobiq/RBQFetchedResultsController/issues/comments/174739499","html_url":"https://github.com/Roobiq/RBQFetchedResultsController/issues/60#issuecomment-174739499","issue_url":"https://api.github.com/repos/Roobiq/RBQFetchedResultsController/issues/60","id":174739499,"user":{"login":"bigfish24","id":1036685,"avatar_url":"https://avatars.githubusercontent.com/u/1036685?v=3","gravatar_id":"","url":"https://api.github.com/users/bigfish24","html_url":"https://github.com/bigfish24","followers_url":"https://api.github.com/users/bigfish24/followers","following_url":"https://api.github.com/users/bigfish24/following{/other_user}","gists_url":"https://api.github.com/users/bigfish24/gists{/gist_id}","starred_url":"https://api.github.com/users/bigfish24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigfish24/subscriptions","organizations_url":"https://api.github.com/users/bigfish24/orgs","repos_url":"https://api.github.com/users/bigfish24/repos","events_url":"https://api.github.com/users/bigfish24/events{/privacy}","received_events_url":"https://api.github.com/users/bigfish24/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T00:09:47Z","updated_at":"2016-01-26T00:09:47Z","body":"I would recommend doing any Realm mutation on a background thread that will notify an RBQFRC instance. Note too (it's on the bottom of the README in more detail) that you need to restrict the mutations to either main thread or background thread, if you do some on background and some on main, a deadlock can occur. So the recommended best practice is always background thread when editing a Realm object with a notification."}}