{"action":"opened","number":822,"pull_request":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/822","id":40727003,"html_url":"https://github.com/couchbase/couchbase-lite-ios/pull/822","diff_url":"https://github.com/couchbase/couchbase-lite-ios/pull/822.diff","patch_url":"https://github.com/couchbase/couchbase-lite-ios/pull/822.patch","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/822","number":822,"state":"open","locked":false,"title":"Add _conflicts to the document in the map function","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},"body":"- When updating view index, gather a list of the conflict revisions if any.\r\n\r\n- Add index conflict docs performance test to View_Benchmarks.\r\n\r\n- Performance note when indexing 5000 documents, each has 100 conflicts revisions:\r\n\r\n```\r\nSQLite:\r\n\r\nWithout _conflicts:\r\n[Time, seconds] average: 2.791, relative standard deviation: 0.972%, \r\nvalues: [2.838544, 2.784327, 2.784880, 2.747793, 2.820985, 2.789743, 2.765956, 2.775347, 2.824352, 2.774947],\r\n\r\nWith _conflicts:\r\n[Time, seconds] average: 3.039, relative standard deviation: 1.005%, \r\nvalues: [3.006172, 3.016779, 3.045371, 3.102432, 2.997188, 3.058586, 3.067990, 3.012772, 3.043481, 3.044008]\r\n\r\nForestDB:\r\n\r\nWithout _conflicts:\r\n[Time, seconds] average: 0.587, relative standard deviation: 0.885%, values: [0.580759, 0.590165, 0.585337, 0.583715, 0.588333, 0.588271, 0.585275, 0.585258, 0.583447, 0.600625], \r\n\r\nWith _conflicts:\r\n[Time, seconds] average: 1.033, relative standard deviation: 3.616%, \r\nvalues: [1.057662, 1.031760, 1.068257, 1.012722, 1.068358, 1.094946, 1.040035, 0.996496, 0.983840, 0.979922], \r\n```\r\n","created_at":"2015-07-23T22:48:16Z","updated_at":"2015-07-23T22:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67f597f49f9dd3575e48b6d0db2b4d9097391f4c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/822/commits","review_comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/822/comments","review_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/822/comments","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/statuses/092376ab5084beb1378f9e95ef5f06f073ec4ed3","head":{"label":"couchbase:feature/issue_806_map_conflicts","ref":"feature/issue_806_map_conflicts","sha":"092376ab5084beb1378f9e95ef5f06f073ec4ed3","user":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"repo":{"id":7948548,"name":"couchbase-lite-ios","full_name":"couchbase/couchbase-lite-ios","owner":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/couchbase/couchbase-lite-ios","description":"Lightweight, embedded, syncable NoSQL database engine for iOS (and Mac!) apps.","fork":false,"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","forks_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/forks","keys_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/teams","hooks_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/hooks","issue_events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/events{/number}","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/events","assignees_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/assignees{/user}","branches_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/branches{/branch}","tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/tags","blobs_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/languages","stargazers_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/stargazers","contributors_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/contributors","subscribers_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/subscribers","subscription_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/subscription","commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/contents/{+path}","compare_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/merges","archive_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/downloads","issues_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues{/number}","pulls_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels{/name}","releases_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/releases{/id}","created_at":"2013-02-01T00:09:26Z","updated_at":"2015-07-21T20:11:56Z","pushed_at":"2015-07-23T22:48:18Z","git_url":"git://github.com/couchbase/couchbase-lite-ios.git","ssh_url":"git@github.com:couchbase/couchbase-lite-ios.git","clone_url":"https://github.com/couchbase/couchbase-lite-ios.git","svn_url":"https://github.com/couchbase/couchbase-lite-ios","homepage":"","size":60920,"stargazers_count":754,"watchers_count":754,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":165,"mirror_url":null,"open_issues_count":40,"forks":165,"open_issues":40,"watchers":754,"default_branch":"master"}},"base":{"label":"couchbase:master","ref":"master","sha":"bae82585a3a68e7a7186a083a2e0fa6834f0c636","user":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"repo":{"id":7948548,"name":"couchbase-lite-ios","full_name":"couchbase/couchbase-lite-ios","owner":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/couchbase/couchbase-lite-ios","description":"Lightweight, embedded, syncable NoSQL database engine for iOS (and Mac!) apps.","fork":false,"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","forks_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/forks","keys_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/teams","hooks_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/hooks","issue_events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/events{/number}","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/events","assignees_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/assignees{/user}","branches_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/branches{/branch}","tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/tags","blobs_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/languages","stargazers_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/stargazers","contributors_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/contributors","subscribers_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/subscribers","subscription_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/subscription","commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/contents/{+path}","compare_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/merges","archive_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/downloads","issues_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues{/number}","pulls_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels{/name}","releases_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/releases{/id}","created_at":"2013-02-01T00:09:26Z","updated_at":"2015-07-21T20:11:56Z","pushed_at":"2015-07-23T22:48:18Z","git_url":"git://github.com/couchbase/couchbase-lite-ios.git","ssh_url":"git@github.com:couchbase/couchbase-lite-ios.git","clone_url":"https://github.com/couchbase/couchbase-lite-ios.git","svn_url":"https://github.com/couchbase/couchbase-lite-ios","homepage":"","size":60920,"stargazers_count":754,"watchers_count":754,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":165,"mirror_url":null,"open_issues_count":40,"forks":165,"open_issues":40,"watchers":754,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/822"},"html":{"href":"https://github.com/couchbase/couchbase-lite-ios/pull/822"},"issue":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/822"},"comments":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/822/comments"},"review_comments":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/822/comments"},"review_comment":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/pulls/822/commits"},"statuses":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-ios/statuses/092376ab5084beb1378f9e95ef5f06f073ec4ed3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":114,"deletions":12,"changed_files":4}}