{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/32","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/32/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/32/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/32","id":101482517,"number":32,"title":"LDS Performance Improvements","user":{"login":"richardjrossiii","id":699752,"avatar_url":"https://avatars.githubusercontent.com/u/699752?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjrossiii","html_url":"https://github.com/richardjrossiii","followers_url":"https://api.github.com/users/richardjrossiii/followers","following_url":"https://api.github.com/users/richardjrossiii/following{/other_user}","gists_url":"https://api.github.com/users/richardjrossiii/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjrossiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjrossiii/subscriptions","organizations_url":"https://api.github.com/users/richardjrossiii/orgs","repos_url":"https://api.github.com/users/richardjrossiii/repos","events_url":"https://api.github.com/users/richardjrossiii/events{/privacy}","received_events_url":"https://api.github.com/users/richardjrossiii/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"richardjrossiii","id":699752,"avatar_url":"https://avatars.githubusercontent.com/u/699752?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjrossiii","html_url":"https://github.com/richardjrossiii","followers_url":"https://api.github.com/users/richardjrossiii/followers","following_url":"https://api.github.com/users/richardjrossiii/following{/other_user}","gists_url":"https://api.github.com/users/richardjrossiii/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjrossiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjrossiii/subscriptions","organizations_url":"https://api.github.com/users/richardjrossiii/orgs","repos_url":"https://api.github.com/users/richardjrossiii/repos","events_url":"https://api.github.com/users/richardjrossiii/events{/privacy}","received_events_url":"https://api.github.com/users/richardjrossiii/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2015-08-17T18:33:19Z","updated_at":"2015-10-09T05:06:05Z","closed_at":null,"body":"This is a master issue for all things related to local datastore performance improvements.\r\n\r\n- [ ] Make LDS stop checkpointing and making copies of objects for mutable containers (#102)\r\n- [ ] Make LDS query matching more efficient by not loading every object into memory for a specified pin.\r\n- [ ] Make LDS use `PFObjectState` and `PFUserState` instead of `PFObject` and `PFUser`, to reduce the amount of locking required for every LDS operation.\r\n- [ ] Improve LDS `PFRelation` tracking.\r\n- [ ] Update LDS database schema to allow for query matching in the database layer itself.\r\n\r\nFor anyone reaching this issue as a result of currently bad LDS performance here's our current recommendations:\r\n\r\n- Keep your object schemas as small as possible - the faster it is to parse them from JSON, the better.\r\n- Relations are currently inefficient. If you can avoid them, do so.\r\n- Minimize usage of any values of the following classes:\r\n   - NSArray\r\n   - NSDictionary\r\n   - PFACL\r\n   - PFGeoPoint\r\n- Whenever possible, use smaller pins. Because LDS loads all objects in a single pin before evaluating a query, the smaller the pin is, the better.\r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/comments/146756032","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/32#issuecomment-146756032","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/32","id":146756032,"user":{"login":"PSIPhone","id":970688,"avatar_url":"https://avatars.githubusercontent.com/u/970688?v=3","gravatar_id":"","url":"https://api.github.com/users/PSIPhone","html_url":"https://github.com/PSIPhone","followers_url":"https://api.github.com/users/PSIPhone/followers","following_url":"https://api.github.com/users/PSIPhone/following{/other_user}","gists_url":"https://api.github.com/users/PSIPhone/gists{/gist_id}","starred_url":"https://api.github.com/users/PSIPhone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PSIPhone/subscriptions","organizations_url":"https://api.github.com/users/PSIPhone/orgs","repos_url":"https://api.github.com/users/PSIPhone/repos","events_url":"https://api.github.com/users/PSIPhone/events{/privacy}","received_events_url":"https://api.github.com/users/PSIPhone/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T05:06:05Z","updated_at":"2015-10-09T05:06:05Z","body":"I am glad to know that iOS sdk 1.9.0 is finally released so will it solve LDS issues?"}}