{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/zachm/tscached/pulls/6","id":62169572,"html_url":"https://github.com/zachm/tscached/pull/6","diff_url":"https://github.com/zachm/tscached/pull/6.diff","patch_url":"https://github.com/zachm/tscached/pull/6.patch","issue_url":"https://api.github.com/repos/zachm/tscached/issues/6","number":6,"state":"closed","locked":false,"title":"Derive kairos chunk sizes","user":{"login":"zachm","id":229114,"avatar_url":"https://avatars.githubusercontent.com/u/229114?v=3","gravatar_id":"","url":"https://api.github.com/users/zachm","html_url":"https://github.com/zachm","followers_url":"https://api.github.com/users/zachm/followers","following_url":"https://api.github.com/users/zachm/following{/other_user}","gists_url":"https://api.github.com/users/zachm/gists{/gist_id}","starred_url":"https://api.github.com/users/zachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachm/subscriptions","organizations_url":"https://api.github.com/users/zachm/orgs","repos_url":"https://api.github.com/users/zachm/repos","events_url":"https://api.github.com/users/zachm/events{/privacy}","received_events_url":"https://api.github.com/users/zachm/received_events","type":"User","site_admin":false},"body":"This is part of @venkey-ariv's proposal to chunk up Kairos queries. The basic idea is to split a 3h query, for example, into six 30m queries. This can radically speed up Kairos backend response times by sharding out the work.\r\n\r\nThe actual derivation is a little complicated. We add a default chunking size, and a maximum number of chunks we're willing to proxy out, into the config. The implementation respects this and tries to do the right thing.\r\n\r\nI wrote tests - full coverage - because there are many edge cases and I'd prefer to not introduce more bugs.","created_at":"2016-03-09T02:07:11Z","updated_at":"2016-03-09T21:46:31Z","closed_at":"2016-03-09T21:46:30Z","merged_at":"2016-03-09T21:46:30Z","merge_commit_sha":"069a9fc41847541b19752d2bee3adf1f3915a962","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zachm/tscached/pulls/6/commits","review_comments_url":"https://api.github.com/repos/zachm/tscached/pulls/6/comments","review_comment_url":"https://api.github.com/repos/zachm/tscached/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zachm/tscached/issues/6/comments","statuses_url":"https://api.github.com/repos/zachm/tscached/statuses/525597c418c68fa7cedf47626f32600889117562","head":{"label":"zachm:derive_kairos_chunk_sizes","ref":"derive_kairos_chunk_sizes","sha":"525597c418c68fa7cedf47626f32600889117562","user":{"login":"zachm","id":229114,"avatar_url":"https://avatars.githubusercontent.com/u/229114?v=3","gravatar_id":"","url":"https://api.github.com/users/zachm","html_url":"https://github.com/zachm","followers_url":"https://api.github.com/users/zachm/followers","following_url":"https://api.github.com/users/zachm/following{/other_user}","gists_url":"https://api.github.com/users/zachm/gists{/gist_id}","starred_url":"https://api.github.com/users/zachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachm/subscriptions","organizations_url":"https://api.github.com/users/zachm/orgs","repos_url":"https://api.github.com/users/zachm/repos","events_url":"https://api.github.com/users/zachm/events{/privacy}","received_events_url":"https://api.github.com/users/zachm/received_events","type":"User","site_admin":false},"repo":{"id":50534484,"name":"tscached","full_name":"zachm/tscached","owner":{"login":"zachm","id":229114,"avatar_url":"https://avatars.githubusercontent.com/u/229114?v=3","gravatar_id":"","url":"https://api.github.com/users/zachm","html_url":"https://github.com/zachm","followers_url":"https://api.github.com/users/zachm/followers","following_url":"https://api.github.com/users/zachm/following{/other_user}","gists_url":"https://api.github.com/users/zachm/gists{/gist_id}","starred_url":"https://api.github.com/users/zachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachm/subscriptions","organizations_url":"https://api.github.com/users/zachm/orgs","repos_url":"https://api.github.com/users/zachm/repos","events_url":"https://api.github.com/users/zachm/events{/privacy}","received_events_url":"https://api.github.com/users/zachm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zachm/tscached","description":"Make Kairos Great Again.","fork":false,"url":"https://api.github.com/repos/zachm/tscached","forks_url":"https://api.github.com/repos/zachm/tscached/forks","keys_url":"https://api.github.com/repos/zachm/tscached/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zachm/tscached/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zachm/tscached/teams","hooks_url":"https://api.github.com/repos/zachm/tscached/hooks","issue_events_url":"https://api.github.com/repos/zachm/tscached/issues/events{/number}","events_url":"https://api.github.com/repos/zachm/tscached/events","assignees_url":"https://api.github.com/repos/zachm/tscached/assignees{/user}","branches_url":"https://api.github.com/repos/zachm/tscached/branches{/branch}","tags_url":"https://api.github.com/repos/zachm/tscached/tags","blobs_url":"https://api.github.com/repos/zachm/tscached/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zachm/tscached/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zachm/tscached/git/refs{/sha}","trees_url":"https://api.github.com/repos/zachm/tscached/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zachm/tscached/statuses/{sha}","languages_url":"https://api.github.com/repos/zachm/tscached/languages","stargazers_url":"https://api.github.com/repos/zachm/tscached/stargazers","contributors_url":"https://api.github.com/repos/zachm/tscached/contributors","subscribers_url":"https://api.github.com/repos/zachm/tscached/subscribers","subscription_url":"https://api.github.com/repos/zachm/tscached/subscription","commits_url":"https://api.github.com/repos/zachm/tscached/commits{/sha}","git_commits_url":"https://api.github.com/repos/zachm/tscached/git/commits{/sha}","comments_url":"https://api.github.com/repos/zachm/tscached/comments{/number}","issue_comment_url":"https://api.github.com/repos/zachm/tscached/issues/comments{/number}","contents_url":"https://api.github.com/repos/zachm/tscached/contents/{+path}","compare_url":"https://api.github.com/repos/zachm/tscached/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zachm/tscached/merges","archive_url":"https://api.github.com/repos/zachm/tscached/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zachm/tscached/downloads","issues_url":"https://api.github.com/repos/zachm/tscached/issues{/number}","pulls_url":"https://api.github.com/repos/zachm/tscached/pulls{/number}","milestones_url":"https://api.github.com/repos/zachm/tscached/milestones{/number}","notifications_url":"https://api.github.com/repos/zachm/tscached/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zachm/tscached/labels{/name}","releases_url":"https://api.github.com/repos/zachm/tscached/releases{/id}","deployments_url":"https://api.github.com/repos/zachm/tscached/deployments","created_at":"2016-01-27T20:09:51Z","updated_at":"2016-03-07T04:49:52Z","pushed_at":"2016-03-09T21:46:31Z","git_url":"git://github.com/zachm/tscached.git","ssh_url":"git@github.com:zachm/tscached.git","clone_url":"https://github.com/zachm/tscached.git","svn_url":"https://github.com/zachm/tscached","homepage":"","size":626,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"zachm:master","ref":"master","sha":"828b94cef8f3f7e3584e3b169e5b43314ef42f29","user":{"login":"zachm","id":229114,"avatar_url":"https://avatars.githubusercontent.com/u/229114?v=3","gravatar_id":"","url":"https://api.github.com/users/zachm","html_url":"https://github.com/zachm","followers_url":"https://api.github.com/users/zachm/followers","following_url":"https://api.github.com/users/zachm/following{/other_user}","gists_url":"https://api.github.com/users/zachm/gists{/gist_id}","starred_url":"https://api.github.com/users/zachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachm/subscriptions","organizations_url":"https://api.github.com/users/zachm/orgs","repos_url":"https://api.github.com/users/zachm/repos","events_url":"https://api.github.com/users/zachm/events{/privacy}","received_events_url":"https://api.github.com/users/zachm/received_events","type":"User","site_admin":false},"repo":{"id":50534484,"name":"tscached","full_name":"zachm/tscached","owner":{"login":"zachm","id":229114,"avatar_url":"https://avatars.githubusercontent.com/u/229114?v=3","gravatar_id":"","url":"https://api.github.com/users/zachm","html_url":"https://github.com/zachm","followers_url":"https://api.github.com/users/zachm/followers","following_url":"https://api.github.com/users/zachm/following{/other_user}","gists_url":"https://api.github.com/users/zachm/gists{/gist_id}","starred_url":"https://api.github.com/users/zachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachm/subscriptions","organizations_url":"https://api.github.com/users/zachm/orgs","repos_url":"https://api.github.com/users/zachm/repos","events_url":"https://api.github.com/users/zachm/events{/privacy}","received_events_url":"https://api.github.com/users/zachm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zachm/tscached","description":"Make Kairos Great Again.","fork":false,"url":"https://api.github.com/repos/zachm/tscached","forks_url":"https://api.github.com/repos/zachm/tscached/forks","keys_url":"https://api.github.com/repos/zachm/tscached/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zachm/tscached/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zachm/tscached/teams","hooks_url":"https://api.github.com/repos/zachm/tscached/hooks","issue_events_url":"https://api.github.com/repos/zachm/tscached/issues/events{/number}","events_url":"https://api.github.com/repos/zachm/tscached/events","assignees_url":"https://api.github.com/repos/zachm/tscached/assignees{/user}","branches_url":"https://api.github.com/repos/zachm/tscached/branches{/branch}","tags_url":"https://api.github.com/repos/zachm/tscached/tags","blobs_url":"https://api.github.com/repos/zachm/tscached/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zachm/tscached/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zachm/tscached/git/refs{/sha}","trees_url":"https://api.github.com/repos/zachm/tscached/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zachm/tscached/statuses/{sha}","languages_url":"https://api.github.com/repos/zachm/tscached/languages","stargazers_url":"https://api.github.com/repos/zachm/tscached/stargazers","contributors_url":"https://api.github.com/repos/zachm/tscached/contributors","subscribers_url":"https://api.github.com/repos/zachm/tscached/subscribers","subscription_url":"https://api.github.com/repos/zachm/tscached/subscription","commits_url":"https://api.github.com/repos/zachm/tscached/commits{/sha}","git_commits_url":"https://api.github.com/repos/zachm/tscached/git/commits{/sha}","comments_url":"https://api.github.com/repos/zachm/tscached/comments{/number}","issue_comment_url":"https://api.github.com/repos/zachm/tscached/issues/comments{/number}","contents_url":"https://api.github.com/repos/zachm/tscached/contents/{+path}","compare_url":"https://api.github.com/repos/zachm/tscached/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zachm/tscached/merges","archive_url":"https://api.github.com/repos/zachm/tscached/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zachm/tscached/downloads","issues_url":"https://api.github.com/repos/zachm/tscached/issues{/number}","pulls_url":"https://api.github.com/repos/zachm/tscached/pulls{/number}","milestones_url":"https://api.github.com/repos/zachm/tscached/milestones{/number}","notifications_url":"https://api.github.com/repos/zachm/tscached/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zachm/tscached/labels{/name}","releases_url":"https://api.github.com/repos/zachm/tscached/releases{/id}","deployments_url":"https://api.github.com/repos/zachm/tscached/deployments","created_at":"2016-01-27T20:09:51Z","updated_at":"2016-03-07T04:49:52Z","pushed_at":"2016-03-09T21:46:31Z","git_url":"git://github.com/zachm/tscached.git","ssh_url":"git@github.com:zachm/tscached.git","clone_url":"https://github.com/zachm/tscached.git","svn_url":"https://github.com/zachm/tscached","homepage":"","size":626,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zachm/tscached/pulls/6"},"html":{"href":"https://github.com/zachm/tscached/pull/6"},"issue":{"href":"https://api.github.com/repos/zachm/tscached/issues/6"},"comments":{"href":"https://api.github.com/repos/zachm/tscached/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/zachm/tscached/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/zachm/tscached/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zachm/tscached/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/zachm/tscached/statuses/525597c418c68fa7cedf47626f32600889117562"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"zachm","id":229114,"avatar_url":"https://avatars.githubusercontent.com/u/229114?v=3","gravatar_id":"","url":"https://api.github.com/users/zachm","html_url":"https://github.com/zachm","followers_url":"https://api.github.com/users/zachm/followers","following_url":"https://api.github.com/users/zachm/following{/other_user}","gists_url":"https://api.github.com/users/zachm/gists{/gist_id}","starred_url":"https://api.github.com/users/zachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachm/subscriptions","organizations_url":"https://api.github.com/users/zachm/orgs","repos_url":"https://api.github.com/users/zachm/repos","events_url":"https://api.github.com/users/zachm/events{/privacy}","received_events_url":"https://api.github.com/users/zachm/received_events","type":"User","site_admin":false},"comments":4,"review_comments":3,"commits":4,"additions":127,"deletions":8,"changed_files":3}}