{"action":"closed","number":318,"pull_request":{"url":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/318","id":213133261,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMTMzMjYx","html_url":"https://github.com/Kinvey/swift-sdk/pull/318","diff_url":"https://github.com/Kinvey/swift-sdk/pull/318.diff","patch_url":"https://github.com/Kinvey/swift-sdk/pull/318.patch","issue_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues/318","number":318,"state":"closed","locked":false,"title":"MLIBZ-2661: bugfix for large pull memory consumption","user":{"login":"heyzooi","id":600503,"node_id":"MDQ6VXNlcjYwMDUwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/600503?v=4","gravatar_id":"","url":"https://api.github.com/users/heyzooi","html_url":"https://github.com/heyzooi","followers_url":"https://api.github.com/users/heyzooi/followers","following_url":"https://api.github.com/users/heyzooi/following{/other_user}","gists_url":"https://api.github.com/users/heyzooi/gists{/gist_id}","starred_url":"https://api.github.com/users/heyzooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyzooi/subscriptions","organizations_url":"https://api.github.com/users/heyzooi/orgs","repos_url":"https://api.github.com/users/heyzooi/repos","events_url":"https://api.github.com/users/heyzooi/events{/privacy}","received_events_url":"https://api.github.com/users/heyzooi/received_events","type":"User","site_admin":false},"body":"#### Description\r\n\r\nRealm have a limitation of keeping all objects in memory during a single large transaction. To avoid this situation we did a few changes around the cache layer.\r\n\r\n#### Changes\r\n\r\n- Request Start persisted is now from the `count()` \r\n\r\n#### Tests\r\n\r\n- A few unit tests to ensure the cache data still consistent\r\n","created_at":"2018-09-04T23:48:52Z","updated_at":"2018-09-06T17:13:54Z","closed_at":"2018-09-06T17:13:53Z","merged_at":"2018-09-06T17:13:53Z","merge_commit_sha":"6f0f17a43f5a4913ed4c87984247f52fb0c4d383","assignee":{"login":"heyzooi","id":600503,"node_id":"MDQ6VXNlcjYwMDUwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/600503?v=4","gravatar_id":"","url":"https://api.github.com/users/heyzooi","html_url":"https://github.com/heyzooi","followers_url":"https://api.github.com/users/heyzooi/followers","following_url":"https://api.github.com/users/heyzooi/following{/other_user}","gists_url":"https://api.github.com/users/heyzooi/gists{/gist_id}","starred_url":"https://api.github.com/users/heyzooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyzooi/subscriptions","organizations_url":"https://api.github.com/users/heyzooi/orgs","repos_url":"https://api.github.com/users/heyzooi/repos","events_url":"https://api.github.com/users/heyzooi/events{/privacy}","received_events_url":"https://api.github.com/users/heyzooi/received_events","type":"User","site_admin":false},"assignees":[{"login":"heyzooi","id":600503,"node_id":"MDQ6VXNlcjYwMDUwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/600503?v=4","gravatar_id":"","url":"https://api.github.com/users/heyzooi","html_url":"https://github.com/heyzooi","followers_url":"https://api.github.com/users/heyzooi/followers","following_url":"https://api.github.com/users/heyzooi/following{/other_user}","gists_url":"https://api.github.com/users/heyzooi/gists{/gist_id}","starred_url":"https://api.github.com/users/heyzooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyzooi/subscriptions","organizations_url":"https://api.github.com/users/heyzooi/orgs","repos_url":"https://api.github.com/users/heyzooi/repos","events_url":"https://api.github.com/users/heyzooi/events{/privacy}","received_events_url":"https://api.github.com/users/heyzooi/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/318/commits","review_comments_url":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/318/comments","review_comment_url":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues/318/comments","statuses_url":"https://api.github.com/repos/Kinvey/swift-sdk/statuses/f15f6fb47cfe57e51de0518eaf5e4820cc03797d","head":{"label":"Kinvey:feature/MLIBZ-2661-large_pull_memory_consumption","ref":"feature/MLIBZ-2661-large_pull_memory_consumption","sha":"f15f6fb47cfe57e51de0518eaf5e4820cc03797d","user":{"login":"Kinvey","id":1276480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzY0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"repo":{"id":32344900,"node_id":"MDEwOlJlcG9zaXRvcnkzMjM0NDkwMA==","name":"swift-sdk","full_name":"Kinvey/swift-sdk","owner":{"login":"Kinvey","id":1276480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzY0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinvey/swift-sdk","description":"SDK for native iOS applications","fork":false,"url":"https://api.github.com/repos/Kinvey/swift-sdk","forks_url":"https://api.github.com/repos/Kinvey/swift-sdk/forks","keys_url":"https://api.github.com/repos/Kinvey/swift-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinvey/swift-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinvey/swift-sdk/teams","hooks_url":"https://api.github.com/repos/Kinvey/swift-sdk/hooks","issue_events_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Kinvey/swift-sdk/events","assignees_url":"https://api.github.com/repos/Kinvey/swift-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Kinvey/swift-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Kinvey/swift-sdk/tags","blobs_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinvey/swift-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinvey/swift-sdk/languages","stargazers_url":"https://api.github.com/repos/Kinvey/swift-sdk/stargazers","contributors_url":"https://api.github.com/repos/Kinvey/swift-sdk/contributors","subscribers_url":"https://api.github.com/repos/Kinvey/swift-sdk/subscribers","subscription_url":"https://api.github.com/repos/Kinvey/swift-sdk/subscription","commits_url":"https://api.github.com/repos/Kinvey/swift-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinvey/swift-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinvey/swift-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Kinvey/swift-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinvey/swift-sdk/merges","archive_url":"https://api.github.com/repos/Kinvey/swift-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinvey/swift-sdk/downloads","issues_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Kinvey/swift-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinvey/swift-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinvey/swift-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinvey/swift-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Kinvey/swift-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Kinvey/swift-sdk/deployments","created_at":"2015-03-16T18:31:51Z","updated_at":"2018-08-24T23:36:00Z","pushed_at":"2018-09-06T17:13:53Z","git_url":"git://github.com/Kinvey/swift-sdk.git","ssh_url":"git@github.com:Kinvey/swift-sdk.git","clone_url":"https://github.com/Kinvey/swift-sdk.git","svn_url":"https://github.com/Kinvey/swift-sdk","homepage":"https://devcenter.kinvey.com/ios","size":55799,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"Kinvey:develop","ref":"develop","sha":"8759653a2c0a9532d93890d1ca94e6614ce1f06d","user":{"login":"Kinvey","id":1276480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzY0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"repo":{"id":32344900,"node_id":"MDEwOlJlcG9zaXRvcnkzMjM0NDkwMA==","name":"swift-sdk","full_name":"Kinvey/swift-sdk","owner":{"login":"Kinvey","id":1276480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzY0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinvey/swift-sdk","description":"SDK for native iOS applications","fork":false,"url":"https://api.github.com/repos/Kinvey/swift-sdk","forks_url":"https://api.github.com/repos/Kinvey/swift-sdk/forks","keys_url":"https://api.github.com/repos/Kinvey/swift-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinvey/swift-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinvey/swift-sdk/teams","hooks_url":"https://api.github.com/repos/Kinvey/swift-sdk/hooks","issue_events_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Kinvey/swift-sdk/events","assignees_url":"https://api.github.com/repos/Kinvey/swift-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Kinvey/swift-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Kinvey/swift-sdk/tags","blobs_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinvey/swift-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinvey/swift-sdk/languages","stargazers_url":"https://api.github.com/repos/Kinvey/swift-sdk/stargazers","contributors_url":"https://api.github.com/repos/Kinvey/swift-sdk/contributors","subscribers_url":"https://api.github.com/repos/Kinvey/swift-sdk/subscribers","subscription_url":"https://api.github.com/repos/Kinvey/swift-sdk/subscription","commits_url":"https://api.github.com/repos/Kinvey/swift-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinvey/swift-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinvey/swift-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinvey/swift-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Kinvey/swift-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinvey/swift-sdk/merges","archive_url":"https://api.github.com/repos/Kinvey/swift-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinvey/swift-sdk/downloads","issues_url":"https://api.github.com/repos/Kinvey/swift-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Kinvey/swift-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinvey/swift-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinvey/swift-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinvey/swift-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Kinvey/swift-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Kinvey/swift-sdk/deployments","created_at":"2015-03-16T18:31:51Z","updated_at":"2018-08-24T23:36:00Z","pushed_at":"2018-09-06T17:13:53Z","git_url":"git://github.com/Kinvey/swift-sdk.git","ssh_url":"git@github.com:Kinvey/swift-sdk.git","clone_url":"https://github.com/Kinvey/swift-sdk.git","svn_url":"https://github.com/Kinvey/swift-sdk","homepage":"https://devcenter.kinvey.com/ios","size":55799,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/318"},"html":{"href":"https://github.com/Kinvey/swift-sdk/pull/318"},"issue":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/issues/318"},"comments":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/issues/318/comments"},"review_comments":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/318/comments"},"review_comment":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/pulls/318/commits"},"statuses":{"href":"https://api.github.com/repos/Kinvey/swift-sdk/statuses/f15f6fb47cfe57e51de0518eaf5e4820cc03797d"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"heyzooi","id":600503,"node_id":"MDQ6VXNlcjYwMDUwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/600503?v=4","gravatar_id":"","url":"https://api.github.com/users/heyzooi","html_url":"https://github.com/heyzooi","followers_url":"https://api.github.com/users/heyzooi/followers","following_url":"https://api.github.com/users/heyzooi/following{/other_user}","gists_url":"https://api.github.com/users/heyzooi/gists{/gist_id}","starred_url":"https://api.github.com/users/heyzooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyzooi/subscriptions","organizations_url":"https://api.github.com/users/heyzooi/orgs","repos_url":"https://api.github.com/users/heyzooi/repos","events_url":"https://api.github.com/users/heyzooi/events{/privacy}","received_events_url":"https://api.github.com/users/heyzooi/received_events","type":"User","site_admin":false},"comments":3,"review_comments":2,"maintainer_can_modify":false,"commits":4,"additions":222,"deletions":102,"changed_files":14}}
{"actor":{"display_login":"heyzooi"}}