{"action":"opened","number":133,"pull_request":{"url":"https://api.github.com/repos/twosigma/Cook/pulls/133","id":72572385,"html_url":"https://github.com/twosigma/Cook/pull/133","diff_url":"https://github.com/twosigma/Cook/pull/133.diff","patch_url":"https://github.com/twosigma/Cook/pull/133.patch","issue_url":"https://api.github.com/repos/twosigma/Cook/issues/133","number":133,"state":"open","locked":false,"title":"Use unfiltered db when possible for query improvement","user":{"login":"wyegelwel","id":1468189,"avatar_url":"https://avatars.githubusercontent.com/u/1468189?v=3","gravatar_id":"","url":"https://api.github.com/users/wyegelwel","html_url":"https://github.com/wyegelwel","followers_url":"https://api.github.com/users/wyegelwel/followers","following_url":"https://api.github.com/users/wyegelwel/following{/other_user}","gists_url":"https://api.github.com/users/wyegelwel/gists{/gist_id}","starred_url":"https://api.github.com/users/wyegelwel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyegelwel/subscriptions","organizations_url":"https://api.github.com/users/wyegelwel/orgs","repos_url":"https://api.github.com/users/wyegelwel/repos","events_url":"https://api.github.com/users/wyegelwel/events{/privacy}","received_events_url":"https://api.github.com/users/wyegelwel/received_events","type":"User","site_admin":false},"body":"This commit has the `sort-jobs-by-dru` use an unfiltered db when possible. Throughout most (all) of the code, we use a filtered datomic database which will remove datoms which have a metatransaction status of uncommitted. We do this so that jobs will only be considered valid once they have all been submitted so that we could avoid a case where we try to schedule a partial submission. Unfortunately, using a filtered database is not free, and in some cases can be costly. In the case of ranking jobs, it is very costly. The reason for the cost is that the filter must check every datom to see if it passes. Worse, if the datom doesn't have a metatransaction linked to it, it has to do a more expensive search to confirm that. If we can avoid using the filtered db where possible, both the initial poll for data gets fast as well as looking up additional attributes on the entity. \r\n\r\nAs an aside, we should revisit the idea of metatransaction because it comes with such hefty performance consequences. ","created_at":"2016-06-03T21:25:56Z","updated_at":"2016-06-03T21:25:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0302fa9bd6019db7a3a434c618319f1697b3e4ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/twosigma/Cook/pulls/133/commits","review_comments_url":"https://api.github.com/repos/twosigma/Cook/pulls/133/comments","review_comment_url":"https://api.github.com/repos/twosigma/Cook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twosigma/Cook/issues/133/comments","statuses_url":"https://api.github.com/repos/twosigma/Cook/statuses/0193caeb01f8793b495dbd6ec56f4e77f3e2a4b2","head":{"label":"wyegelwel:db-improvement","ref":"db-improvement","sha":"0193caeb01f8793b495dbd6ec56f4e77f3e2a4b2","user":{"login":"wyegelwel","id":1468189,"avatar_url":"https://avatars.githubusercontent.com/u/1468189?v=3","gravatar_id":"","url":"https://api.github.com/users/wyegelwel","html_url":"https://github.com/wyegelwel","followers_url":"https://api.github.com/users/wyegelwel/followers","following_url":"https://api.github.com/users/wyegelwel/following{/other_user}","gists_url":"https://api.github.com/users/wyegelwel/gists{/gist_id}","starred_url":"https://api.github.com/users/wyegelwel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyegelwel/subscriptions","organizations_url":"https://api.github.com/users/wyegelwel/orgs","repos_url":"https://api.github.com/users/wyegelwel/repos","events_url":"https://api.github.com/users/wyegelwel/events{/privacy}","received_events_url":"https://api.github.com/users/wyegelwel/received_events","type":"User","site_admin":false},"repo":{"id":44717529,"name":"Cook","full_name":"wyegelwel/Cook","owner":{"login":"wyegelwel","id":1468189,"avatar_url":"https://avatars.githubusercontent.com/u/1468189?v=3","gravatar_id":"","url":"https://api.github.com/users/wyegelwel","html_url":"https://github.com/wyegelwel","followers_url":"https://api.github.com/users/wyegelwel/followers","following_url":"https://api.github.com/users/wyegelwel/following{/other_user}","gists_url":"https://api.github.com/users/wyegelwel/gists{/gist_id}","starred_url":"https://api.github.com/users/wyegelwel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyegelwel/subscriptions","organizations_url":"https://api.github.com/users/wyegelwel/orgs","repos_url":"https://api.github.com/users/wyegelwel/repos","events_url":"https://api.github.com/users/wyegelwel/events{/privacy}","received_events_url":"https://api.github.com/users/wyegelwel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wyegelwel/Cook","description":"Fair job scheduler on Mesos for batch workloads and Spark","fork":true,"url":"https://api.github.com/repos/wyegelwel/Cook","forks_url":"https://api.github.com/repos/wyegelwel/Cook/forks","keys_url":"https://api.github.com/repos/wyegelwel/Cook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wyegelwel/Cook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wyegelwel/Cook/teams","hooks_url":"https://api.github.com/repos/wyegelwel/Cook/hooks","issue_events_url":"https://api.github.com/repos/wyegelwel/Cook/issues/events{/number}","events_url":"https://api.github.com/repos/wyegelwel/Cook/events","assignees_url":"https://api.github.com/repos/wyegelwel/Cook/assignees{/user}","branches_url":"https://api.github.com/repos/wyegelwel/Cook/branches{/branch}","tags_url":"https://api.github.com/repos/wyegelwel/Cook/tags","blobs_url":"https://api.github.com/repos/wyegelwel/Cook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wyegelwel/Cook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wyegelwel/Cook/git/refs{/sha}","trees_url":"https://api.github.com/repos/wyegelwel/Cook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wyegelwel/Cook/statuses/{sha}","languages_url":"https://api.github.com/repos/wyegelwel/Cook/languages","stargazers_url":"https://api.github.com/repos/wyegelwel/Cook/stargazers","contributors_url":"https://api.github.com/repos/wyegelwel/Cook/contributors","subscribers_url":"https://api.github.com/repos/wyegelwel/Cook/subscribers","subscription_url":"https://api.github.com/repos/wyegelwel/Cook/subscription","commits_url":"https://api.github.com/repos/wyegelwel/Cook/commits{/sha}","git_commits_url":"https://api.github.com/repos/wyegelwel/Cook/git/commits{/sha}","comments_url":"https://api.github.com/repos/wyegelwel/Cook/comments{/number}","issue_comment_url":"https://api.github.com/repos/wyegelwel/Cook/issues/comments{/number}","contents_url":"https://api.github.com/repos/wyegelwel/Cook/contents/{+path}","compare_url":"https://api.github.com/repos/wyegelwel/Cook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wyegelwel/Cook/merges","archive_url":"https://api.github.com/repos/wyegelwel/Cook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wyegelwel/Cook/downloads","issues_url":"https://api.github.com/repos/wyegelwel/Cook/issues{/number}","pulls_url":"https://api.github.com/repos/wyegelwel/Cook/pulls{/number}","milestones_url":"https://api.github.com/repos/wyegelwel/Cook/milestones{/number}","notifications_url":"https://api.github.com/repos/wyegelwel/Cook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wyegelwel/Cook/labels{/name}","releases_url":"https://api.github.com/repos/wyegelwel/Cook/releases{/id}","deployments_url":"https://api.github.com/repos/wyegelwel/Cook/deployments","created_at":"2015-10-22T02:35:43Z","updated_at":"2016-02-12T19:40:37Z","pushed_at":"2016-06-03T21:15:17Z","git_url":"git://github.com/wyegelwel/Cook.git","ssh_url":"git@github.com:wyegelwel/Cook.git","clone_url":"https://github.com/wyegelwel/Cook.git","svn_url":"https://github.com/wyegelwel/Cook","homepage":"","size":391,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"twosigma:master","ref":"master","sha":"a669ca7c71f35042fcaddc822dccb212273c58c3","user":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars.githubusercontent.com/u/4049181?v=3","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"repo":{"id":42325066,"name":"Cook","full_name":"twosigma/Cook","owner":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars.githubusercontent.com/u/4049181?v=3","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twosigma/Cook","description":"Fair job scheduler on Mesos for batch workloads and Spark","fork":false,"url":"https://api.github.com/repos/twosigma/Cook","forks_url":"https://api.github.com/repos/twosigma/Cook/forks","keys_url":"https://api.github.com/repos/twosigma/Cook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twosigma/Cook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twosigma/Cook/teams","hooks_url":"https://api.github.com/repos/twosigma/Cook/hooks","issue_events_url":"https://api.github.com/repos/twosigma/Cook/issues/events{/number}","events_url":"https://api.github.com/repos/twosigma/Cook/events","assignees_url":"https://api.github.com/repos/twosigma/Cook/assignees{/user}","branches_url":"https://api.github.com/repos/twosigma/Cook/branches{/branch}","tags_url":"https://api.github.com/repos/twosigma/Cook/tags","blobs_url":"https://api.github.com/repos/twosigma/Cook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twosigma/Cook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twosigma/Cook/git/refs{/sha}","trees_url":"https://api.github.com/repos/twosigma/Cook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twosigma/Cook/statuses/{sha}","languages_url":"https://api.github.com/repos/twosigma/Cook/languages","stargazers_url":"https://api.github.com/repos/twosigma/Cook/stargazers","contributors_url":"https://api.github.com/repos/twosigma/Cook/contributors","subscribers_url":"https://api.github.com/repos/twosigma/Cook/subscribers","subscription_url":"https://api.github.com/repos/twosigma/Cook/subscription","commits_url":"https://api.github.com/repos/twosigma/Cook/commits{/sha}","git_commits_url":"https://api.github.com/repos/twosigma/Cook/git/commits{/sha}","comments_url":"https://api.github.com/repos/twosigma/Cook/comments{/number}","issue_comment_url":"https://api.github.com/repos/twosigma/Cook/issues/comments{/number}","contents_url":"https://api.github.com/repos/twosigma/Cook/contents/{+path}","compare_url":"https://api.github.com/repos/twosigma/Cook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twosigma/Cook/merges","archive_url":"https://api.github.com/repos/twosigma/Cook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twosigma/Cook/downloads","issues_url":"https://api.github.com/repos/twosigma/Cook/issues{/number}","pulls_url":"https://api.github.com/repos/twosigma/Cook/pulls{/number}","milestones_url":"https://api.github.com/repos/twosigma/Cook/milestones{/number}","notifications_url":"https://api.github.com/repos/twosigma/Cook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twosigma/Cook/labels{/name}","releases_url":"https://api.github.com/repos/twosigma/Cook/releases{/id}","deployments_url":"https://api.github.com/repos/twosigma/Cook/deployments","created_at":"2015-09-11T18:20:08Z","updated_at":"2016-05-24T23:02:52Z","pushed_at":"2016-06-03T21:25:56Z","git_url":"git://github.com/twosigma/Cook.git","ssh_url":"git@github.com:twosigma/Cook.git","clone_url":"https://github.com/twosigma/Cook.git","svn_url":"https://github.com/twosigma/Cook","homepage":"","size":526,"stargazers_count":125,"watchers_count":125,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":47,"forks":26,"open_issues":47,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/133"},"html":{"href":"https://github.com/twosigma/Cook/pull/133"},"issue":{"href":"https://api.github.com/repos/twosigma/Cook/issues/133"},"comments":{"href":"https://api.github.com/repos/twosigma/Cook/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/twosigma/Cook/statuses/0193caeb01f8793b495dbd6ec56f4e77f3e2a4b2"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":31,"deletions":20,"changed_files":3}}
{"actor":{"display_login":"wyegelwel"}}