{"action":"created","comment":{"url":"https://api.github.com/repos/seomoz/sortdb/pulls/comments/36926330","id":36926330,"diff_hunk":"@@ -151,45 +229,71 @@ func (s *httpServer) reloadHandler(w http.ResponseWriter, req *http.Request) {\n }\n \n type statsResponse struct {\n-\tRequests     uint64        `json:\"total_requests\"`\n-\tSeekCount    uint64        `json:\"total_seeks\"`\n-\tGetRequests  uint64        `json:\"get_requests\"`\n-\tGetHits      uint64        `json:\"get_hits\"`\n-\tGetMisses    uint64        `json:\"get_misses\"`\n-\tGetAvg       time.Duration `json:\"get_average_request\"` // Microsecond\n-\tGet95        time.Duration `json:\"get_95\"`              // Microsecond\n-\tGet99        time.Duration `json:\"get_99\"`              // Microsecond\n-\tMgetRequests uint64        `json:\"mget_requests\"`\n-\tMgetHits     uint64        `json:\"mget_hits\"`\n-\tMgetMisses   uint64        `json:\"mget_misses\"`\n-\tMgetAvg      time.Duration `json:\"mget_average_request\"` // Microsecond\n-\tMget95       time.Duration `json:\"mget_95\"`              // Microsecond\n-\tMget99       time.Duration `json:\"mget_99\"`              // Microsecond\n-\tDBSize       int64         `json:\"db_size\"`\n-\tDBMtime      int64         `json:\"db_mtime\"`\n+\tRequests        uint64        `json:\"total_requests\"`","path":"http.go","position":149,"original_position":149,"commit_id":"8677f696771910a2296120a7fd3582806b92b388","original_commit_id":"8677f696771910a2296120a7fd3582806b92b388","user":{"login":"joshgummersall","id":1235378,"avatar_url":"https://avatars.githubusercontent.com/u/1235378?v=3","gravatar_id":"","url":"https://api.github.com/users/joshgummersall","html_url":"https://github.com/joshgummersall","followers_url":"https://api.github.com/users/joshgummersall/followers","following_url":"https://api.github.com/users/joshgummersall/following{/other_user}","gists_url":"https://api.github.com/users/joshgummersall/gists{/gist_id}","starred_url":"https://api.github.com/users/joshgummersall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshgummersall/subscriptions","organizations_url":"https://api.github.com/users/joshgummersall/orgs","repos_url":"https://api.github.com/users/joshgummersall/repos","events_url":"https://api.github.com/users/joshgummersall/events{/privacy}","received_events_url":"https://api.github.com/users/joshgummersall/received_events","type":"User","site_admin":false},"body":"Ah you know, never mind. I'm confused I didn't see you added keys longer than any existing ones.","created_at":"2015-08-12T23:19:13Z","updated_at":"2015-08-12T23:19:13Z","html_url":"https://github.com/seomoz/sortdb/pull/1#discussion_r36926330","pull_request_url":"https://api.github.com/repos/seomoz/sortdb/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/seomoz/sortdb/pulls/comments/36926330"},"html":{"href":"https://github.com/seomoz/sortdb/pull/1#discussion_r36926330"},"pull_request":{"href":"https://api.github.com/repos/seomoz/sortdb/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/seomoz/sortdb/pulls/1","id":42207976,"html_url":"https://github.com/seomoz/sortdb/pull/1","diff_url":"https://github.com/seomoz/sortdb/pull/1.diff","patch_url":"https://github.com/seomoz/sortdb/pull/1.patch","issue_url":"https://api.github.com/repos/seomoz/sortdb/issues/1","number":1,"state":"open","locked":false,"title":"Add range matching to DB","user":{"login":"noam-c","id":1154988,"avatar_url":"https://avatars.githubusercontent.com/u/1154988?v=3","gravatar_id":"","url":"https://api.github.com/users/noam-c","html_url":"https://github.com/noam-c","followers_url":"https://api.github.com/users/noam-c/followers","following_url":"https://api.github.com/users/noam-c/following{/other_user}","gists_url":"https://api.github.com/users/noam-c/gists{/gist_id}","starred_url":"https://api.github.com/users/noam-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noam-c/subscriptions","organizations_url":"https://api.github.com/users/noam-c/orgs","repos_url":"https://api.github.com/users/noam-c/repos","events_url":"https://api.github.com/users/noam-c/events{/privacy}","received_events_url":"https://api.github.com/users/noam-c/received_events","type":"User","site_admin":false},"body":"- Adds tests for DB range matching capabilities. These tests are split\ninto forward-matching tests (no end needle specified) and\nrange-matching tests (start and end needles specified).\n- Augments `findFirstRecord` to search for the beginnings and ends of\nranges, and exposes a new external function in DB to support range\nmatching and forward matching.","created_at":"2015-08-12T06:26:18Z","updated_at":"2015-08-12T23:19:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c533739ab0d3f4def23919640cfb561aebc74bb3","assignee":{"login":"joshgummersall","id":1235378,"avatar_url":"https://avatars.githubusercontent.com/u/1235378?v=3","gravatar_id":"","url":"https://api.github.com/users/joshgummersall","html_url":"https://github.com/joshgummersall","followers_url":"https://api.github.com/users/joshgummersall/followers","following_url":"https://api.github.com/users/joshgummersall/following{/other_user}","gists_url":"https://api.github.com/users/joshgummersall/gists{/gist_id}","starred_url":"https://api.github.com/users/joshgummersall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshgummersall/subscriptions","organizations_url":"https://api.github.com/users/joshgummersall/orgs","repos_url":"https://api.github.com/users/joshgummersall/repos","events_url":"https://api.github.com/users/joshgummersall/events{/privacy}","received_events_url":"https://api.github.com/users/joshgummersall/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/seomoz/sortdb/pulls/1/commits","review_comments_url":"https://api.github.com/repos/seomoz/sortdb/pulls/1/comments","review_comment_url":"https://api.github.com/repos/seomoz/sortdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seomoz/sortdb/issues/1/comments","statuses_url":"https://api.github.com/repos/seomoz/sortdb/statuses/8677f696771910a2296120a7fd3582806b92b388","head":{"label":"seomoz:add-range-matching","ref":"add-range-matching","sha":"8677f696771910a2296120a7fd3582806b92b388","user":{"login":"seomoz","id":104895,"avatar_url":"https://avatars.githubusercontent.com/u/104895?v=3","gravatar_id":"","url":"https://api.github.com/users/seomoz","html_url":"https://github.com/seomoz","followers_url":"https://api.github.com/users/seomoz/followers","following_url":"https://api.github.com/users/seomoz/following{/other_user}","gists_url":"https://api.github.com/users/seomoz/gists{/gist_id}","starred_url":"https://api.github.com/users/seomoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seomoz/subscriptions","organizations_url":"https://api.github.com/users/seomoz/orgs","repos_url":"https://api.github.com/users/seomoz/repos","events_url":"https://api.github.com/users/seomoz/events{/privacy}","received_events_url":"https://api.github.com/users/seomoz/received_events","type":"Organization","site_admin":false},"repo":{"id":40332466,"name":"sortdb","full_name":"seomoz/sortdb","owner":{"login":"seomoz","id":104895,"avatar_url":"https://avatars.githubusercontent.com/u/104895?v=3","gravatar_id":"","url":"https://api.github.com/users/seomoz","html_url":"https://github.com/seomoz","followers_url":"https://api.github.com/users/seomoz/followers","following_url":"https://api.github.com/users/seomoz/following{/other_user}","gists_url":"https://api.github.com/users/seomoz/gists{/gist_id}","starred_url":"https://api.github.com/users/seomoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seomoz/subscriptions","organizations_url":"https://api.github.com/users/seomoz/orgs","repos_url":"https://api.github.com/users/seomoz/repos","events_url":"https://api.github.com/users/seomoz/events{/privacy}","received_events_url":"https://api.github.com/users/seomoz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seomoz/sortdb","description":"Make a sorted tsv or csv datafile available over HTTP","fork":true,"url":"https://api.github.com/repos/seomoz/sortdb","forks_url":"https://api.github.com/repos/seomoz/sortdb/forks","keys_url":"https://api.github.com/repos/seomoz/sortdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seomoz/sortdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seomoz/sortdb/teams","hooks_url":"https://api.github.com/repos/seomoz/sortdb/hooks","issue_events_url":"https://api.github.com/repos/seomoz/sortdb/issues/events{/number}","events_url":"https://api.github.com/repos/seomoz/sortdb/events","assignees_url":"https://api.github.com/repos/seomoz/sortdb/assignees{/user}","branches_url":"https://api.github.com/repos/seomoz/sortdb/branches{/branch}","tags_url":"https://api.github.com/repos/seomoz/sortdb/tags","blobs_url":"https://api.github.com/repos/seomoz/sortdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seomoz/sortdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seomoz/sortdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/seomoz/sortdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seomoz/sortdb/statuses/{sha}","languages_url":"https://api.github.com/repos/seomoz/sortdb/languages","stargazers_url":"https://api.github.com/repos/seomoz/sortdb/stargazers","contributors_url":"https://api.github.com/repos/seomoz/sortdb/contributors","subscribers_url":"https://api.github.com/repos/seomoz/sortdb/subscribers","subscription_url":"https://api.github.com/repos/seomoz/sortdb/subscription","commits_url":"https://api.github.com/repos/seomoz/sortdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/seomoz/sortdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/seomoz/sortdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/seomoz/sortdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/seomoz/sortdb/contents/{+path}","compare_url":"https://api.github.com/repos/seomoz/sortdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seomoz/sortdb/merges","archive_url":"https://api.github.com/repos/seomoz/sortdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seomoz/sortdb/downloads","issues_url":"https://api.github.com/repos/seomoz/sortdb/issues{/number}","pulls_url":"https://api.github.com/repos/seomoz/sortdb/pulls{/number}","milestones_url":"https://api.github.com/repos/seomoz/sortdb/milestones{/number}","notifications_url":"https://api.github.com/repos/seomoz/sortdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seomoz/sortdb/labels{/name}","releases_url":"https://api.github.com/repos/seomoz/sortdb/releases{/id}","created_at":"2015-08-07T00:08:16Z","updated_at":"2015-08-07T00:08:17Z","pushed_at":"2015-08-12T21:34:44Z","git_url":"git://github.com/seomoz/sortdb.git","ssh_url":"git@github.com:seomoz/sortdb.git","clone_url":"https://github.com/seomoz/sortdb.git","svn_url":"https://github.com/seomoz/sortdb","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"seomoz:master","ref":"master","sha":"491c680057cd1ad8cfc1575a1cc8ba874f6c8e68","user":{"login":"seomoz","id":104895,"avatar_url":"https://avatars.githubusercontent.com/u/104895?v=3","gravatar_id":"","url":"https://api.github.com/users/seomoz","html_url":"https://github.com/seomoz","followers_url":"https://api.github.com/users/seomoz/followers","following_url":"https://api.github.com/users/seomoz/following{/other_user}","gists_url":"https://api.github.com/users/seomoz/gists{/gist_id}","starred_url":"https://api.github.com/users/seomoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seomoz/subscriptions","organizations_url":"https://api.github.com/users/seomoz/orgs","repos_url":"https://api.github.com/users/seomoz/repos","events_url":"https://api.github.com/users/seomoz/events{/privacy}","received_events_url":"https://api.github.com/users/seomoz/received_events","type":"Organization","site_admin":false},"repo":{"id":40332466,"name":"sortdb","full_name":"seomoz/sortdb","owner":{"login":"seomoz","id":104895,"avatar_url":"https://avatars.githubusercontent.com/u/104895?v=3","gravatar_id":"","url":"https://api.github.com/users/seomoz","html_url":"https://github.com/seomoz","followers_url":"https://api.github.com/users/seomoz/followers","following_url":"https://api.github.com/users/seomoz/following{/other_user}","gists_url":"https://api.github.com/users/seomoz/gists{/gist_id}","starred_url":"https://api.github.com/users/seomoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seomoz/subscriptions","organizations_url":"https://api.github.com/users/seomoz/orgs","repos_url":"https://api.github.com/users/seomoz/repos","events_url":"https://api.github.com/users/seomoz/events{/privacy}","received_events_url":"https://api.github.com/users/seomoz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seomoz/sortdb","description":"Make a sorted tsv or csv datafile available over HTTP","fork":true,"url":"https://api.github.com/repos/seomoz/sortdb","forks_url":"https://api.github.com/repos/seomoz/sortdb/forks","keys_url":"https://api.github.com/repos/seomoz/sortdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seomoz/sortdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seomoz/sortdb/teams","hooks_url":"https://api.github.com/repos/seomoz/sortdb/hooks","issue_events_url":"https://api.github.com/repos/seomoz/sortdb/issues/events{/number}","events_url":"https://api.github.com/repos/seomoz/sortdb/events","assignees_url":"https://api.github.com/repos/seomoz/sortdb/assignees{/user}","branches_url":"https://api.github.com/repos/seomoz/sortdb/branches{/branch}","tags_url":"https://api.github.com/repos/seomoz/sortdb/tags","blobs_url":"https://api.github.com/repos/seomoz/sortdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seomoz/sortdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seomoz/sortdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/seomoz/sortdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seomoz/sortdb/statuses/{sha}","languages_url":"https://api.github.com/repos/seomoz/sortdb/languages","stargazers_url":"https://api.github.com/repos/seomoz/sortdb/stargazers","contributors_url":"https://api.github.com/repos/seomoz/sortdb/contributors","subscribers_url":"https://api.github.com/repos/seomoz/sortdb/subscribers","subscription_url":"https://api.github.com/repos/seomoz/sortdb/subscription","commits_url":"https://api.github.com/repos/seomoz/sortdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/seomoz/sortdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/seomoz/sortdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/seomoz/sortdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/seomoz/sortdb/contents/{+path}","compare_url":"https://api.github.com/repos/seomoz/sortdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seomoz/sortdb/merges","archive_url":"https://api.github.com/repos/seomoz/sortdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seomoz/sortdb/downloads","issues_url":"https://api.github.com/repos/seomoz/sortdb/issues{/number}","pulls_url":"https://api.github.com/repos/seomoz/sortdb/pulls{/number}","milestones_url":"https://api.github.com/repos/seomoz/sortdb/milestones{/number}","notifications_url":"https://api.github.com/repos/seomoz/sortdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seomoz/sortdb/labels{/name}","releases_url":"https://api.github.com/repos/seomoz/sortdb/releases{/id}","created_at":"2015-08-07T00:08:16Z","updated_at":"2015-08-07T00:08:17Z","pushed_at":"2015-08-12T21:34:44Z","git_url":"git://github.com/seomoz/sortdb.git","ssh_url":"git@github.com:seomoz/sortdb.git","clone_url":"https://github.com/seomoz/sortdb.git","svn_url":"https://github.com/seomoz/sortdb","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seomoz/sortdb/pulls/1"},"html":{"href":"https://github.com/seomoz/sortdb/pull/1"},"issue":{"href":"https://api.github.com/repos/seomoz/sortdb/issues/1"},"comments":{"href":"https://api.github.com/repos/seomoz/sortdb/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/seomoz/sortdb/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/seomoz/sortdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seomoz/sortdb/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/seomoz/sortdb/statuses/8677f696771910a2296120a7fd3582806b92b388"}}}}