{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/socrata/spandex/pulls/7","id":32156199,"html_url":"https://github.com/socrata/spandex/pull/7","diff_url":"https://github.com/socrata/spandex/pull/7.diff","patch_url":"https://github.com/socrata/spandex/pull/7.patch","issue_url":"https://api.github.com/repos/socrata/spandex/issues/7","number":7,"state":"open","locked":false,"title":"Make all write operations \"consistent\" (kind of)","user":{"login":"urmilan","id":6767006,"avatar_url":"https://avatars.githubusercontent.com/u/6767006?v=3","gravatar_id":"","url":"https://api.github.com/users/urmilan","html_url":"https://github.com/urmilan","followers_url":"https://api.github.com/users/urmilan/followers","following_url":"https://api.github.com/users/urmilan/following{/other_user}","gists_url":"https://api.github.com/users/urmilan/gists{/gist_id}","starred_url":"https://api.github.com/users/urmilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urmilan/subscriptions","organizations_url":"https://api.github.com/users/urmilan/orgs","repos_url":"https://api.github.com/users/urmilan/repos","events_url":"https://api.github.com/users/urmilan/events{/privacy}","received_events_url":"https://api.github.com/users/urmilan/received_events","type":"User","site_admin":false},"body":"Setting refresh=true on all secondary write operations.\r\nhttp://www.elastic.co/guide/en/elasticsearch/reference/1.x/docs-index_.html#index-refresh\r\n\r\nWe always want to be sure that we're operating on the very latest copy. We are trading off some speed to get consistency. Without this, when we create a new working copy, more often than not the brand new dataset_copy document isn't indexed yet, and we perform all subsequent event operations on a stale copy.\r\n\r\nCaveats:\r\n- refresh=true only guarantees consistency on a single shard.\r\n- We aren't actually sure what the perf implications of running like this at production scale are.","created_at":"2015-03-28T00:54:38Z","updated_at":"2015-03-28T00:54:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/socrata/spandex/pulls/7/commits","review_comments_url":"https://api.github.com/repos/socrata/spandex/pulls/7/comments","review_comment_url":"https://api.github.com/repos/socrata/spandex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/socrata/spandex/issues/7/comments","statuses_url":"https://api.github.com/repos/socrata/spandex/statuses/310d87ed74c3b0e9b5f09aff48cd151c0dda7917","head":{"label":"socrata:urmilan/consistency","ref":"urmilan/consistency","sha":"310d87ed74c3b0e9b5f09aff48cd151c0dda7917","user":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"repo":{"id":26875426,"name":"spandex","full_name":"socrata/spandex","owner":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/socrata/spandex","description":"autocomplete with elasticsearch ","fork":false,"url":"https://api.github.com/repos/socrata/spandex","forks_url":"https://api.github.com/repos/socrata/spandex/forks","keys_url":"https://api.github.com/repos/socrata/spandex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/socrata/spandex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/socrata/spandex/teams","hooks_url":"https://api.github.com/repos/socrata/spandex/hooks","issue_events_url":"https://api.github.com/repos/socrata/spandex/issues/events{/number}","events_url":"https://api.github.com/repos/socrata/spandex/events","assignees_url":"https://api.github.com/repos/socrata/spandex/assignees{/user}","branches_url":"https://api.github.com/repos/socrata/spandex/branches{/branch}","tags_url":"https://api.github.com/repos/socrata/spandex/tags","blobs_url":"https://api.github.com/repos/socrata/spandex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/socrata/spandex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/socrata/spandex/git/refs{/sha}","trees_url":"https://api.github.com/repos/socrata/spandex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/socrata/spandex/statuses/{sha}","languages_url":"https://api.github.com/repos/socrata/spandex/languages","stargazers_url":"https://api.github.com/repos/socrata/spandex/stargazers","contributors_url":"https://api.github.com/repos/socrata/spandex/contributors","subscribers_url":"https://api.github.com/repos/socrata/spandex/subscribers","subscription_url":"https://api.github.com/repos/socrata/spandex/subscription","commits_url":"https://api.github.com/repos/socrata/spandex/commits{/sha}","git_commits_url":"https://api.github.com/repos/socrata/spandex/git/commits{/sha}","comments_url":"https://api.github.com/repos/socrata/spandex/comments{/number}","issue_comment_url":"https://api.github.com/repos/socrata/spandex/issues/comments{/number}","contents_url":"https://api.github.com/repos/socrata/spandex/contents/{+path}","compare_url":"https://api.github.com/repos/socrata/spandex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/socrata/spandex/merges","archive_url":"https://api.github.com/repos/socrata/spandex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/socrata/spandex/downloads","issues_url":"https://api.github.com/repos/socrata/spandex/issues{/number}","pulls_url":"https://api.github.com/repos/socrata/spandex/pulls{/number}","milestones_url":"https://api.github.com/repos/socrata/spandex/milestones{/number}","notifications_url":"https://api.github.com/repos/socrata/spandex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/socrata/spandex/labels{/name}","releases_url":"https://api.github.com/repos/socrata/spandex/releases{/id}","created_at":"2014-11-19T18:32:11Z","updated_at":"2015-03-27T20:19:47Z","pushed_at":"2015-03-28T00:52:55Z","git_url":"git://github.com/socrata/spandex.git","ssh_url":"git@github.com:socrata/spandex.git","clone_url":"https://github.com/socrata/spandex.git","svn_url":"https://github.com/socrata/spandex","homepage":null,"size":107667,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"socrata:master","ref":"master","sha":"ca2d37732910609794304b69dcb9b5b0207153e1","user":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"repo":{"id":26875426,"name":"spandex","full_name":"socrata/spandex","owner":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/socrata/spandex","description":"autocomplete with elasticsearch ","fork":false,"url":"https://api.github.com/repos/socrata/spandex","forks_url":"https://api.github.com/repos/socrata/spandex/forks","keys_url":"https://api.github.com/repos/socrata/spandex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/socrata/spandex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/socrata/spandex/teams","hooks_url":"https://api.github.com/repos/socrata/spandex/hooks","issue_events_url":"https://api.github.com/repos/socrata/spandex/issues/events{/number}","events_url":"https://api.github.com/repos/socrata/spandex/events","assignees_url":"https://api.github.com/repos/socrata/spandex/assignees{/user}","branches_url":"https://api.github.com/repos/socrata/spandex/branches{/branch}","tags_url":"https://api.github.com/repos/socrata/spandex/tags","blobs_url":"https://api.github.com/repos/socrata/spandex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/socrata/spandex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/socrata/spandex/git/refs{/sha}","trees_url":"https://api.github.com/repos/socrata/spandex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/socrata/spandex/statuses/{sha}","languages_url":"https://api.github.com/repos/socrata/spandex/languages","stargazers_url":"https://api.github.com/repos/socrata/spandex/stargazers","contributors_url":"https://api.github.com/repos/socrata/spandex/contributors","subscribers_url":"https://api.github.com/repos/socrata/spandex/subscribers","subscription_url":"https://api.github.com/repos/socrata/spandex/subscription","commits_url":"https://api.github.com/repos/socrata/spandex/commits{/sha}","git_commits_url":"https://api.github.com/repos/socrata/spandex/git/commits{/sha}","comments_url":"https://api.github.com/repos/socrata/spandex/comments{/number}","issue_comment_url":"https://api.github.com/repos/socrata/spandex/issues/comments{/number}","contents_url":"https://api.github.com/repos/socrata/spandex/contents/{+path}","compare_url":"https://api.github.com/repos/socrata/spandex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/socrata/spandex/merges","archive_url":"https://api.github.com/repos/socrata/spandex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/socrata/spandex/downloads","issues_url":"https://api.github.com/repos/socrata/spandex/issues{/number}","pulls_url":"https://api.github.com/repos/socrata/spandex/pulls{/number}","milestones_url":"https://api.github.com/repos/socrata/spandex/milestones{/number}","notifications_url":"https://api.github.com/repos/socrata/spandex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/socrata/spandex/labels{/name}","releases_url":"https://api.github.com/repos/socrata/spandex/releases{/id}","created_at":"2014-11-19T18:32:11Z","updated_at":"2015-03-27T20:19:47Z","pushed_at":"2015-03-28T00:52:55Z","git_url":"git://github.com/socrata/spandex.git","ssh_url":"git@github.com:socrata/spandex.git","clone_url":"https://github.com/socrata/spandex.git","svn_url":"https://github.com/socrata/spandex","homepage":null,"size":107667,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/socrata/spandex/pulls/7"},"html":{"href":"https://github.com/socrata/spandex/pull/7"},"issue":{"href":"https://api.github.com/repos/socrata/spandex/issues/7"},"comments":{"href":"https://api.github.com/repos/socrata/spandex/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/socrata/spandex/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/socrata/spandex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/socrata/spandex/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/socrata/spandex/statuses/310d87ed74c3b0e9b5f09aff48cd151c0dda7917"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":27,"deletions":69,"changed_files":9}}