{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/4130","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/4130/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/4130/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/4130/events","html_url":"https://github.com/influxdb/influxdb/pull/4130","id":106810640,"number":4130,"title":"optimize top queries","user":{"login":"DanielMorsing","id":545573,"avatar_url":"https://avatars.githubusercontent.com/u/545573?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielMorsing","html_url":"https://github.com/DanielMorsing","followers_url":"https://api.github.com/users/DanielMorsing/followers","following_url":"https://api.github.com/users/DanielMorsing/following{/other_user}","gists_url":"https://api.github.com/users/DanielMorsing/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielMorsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielMorsing/subscriptions","organizations_url":"https://api.github.com/users/DanielMorsing/orgs","repos_url":"https://api.github.com/users/DanielMorsing/repos","events_url":"https://api.github.com/users/DanielMorsing/events{/privacy}","received_events_url":"https://api.github.com/users/DanielMorsing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/influxdb/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-16T16:30:16Z","updated_at":"2015-09-17T14:26:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/4130","html_url":"https://github.com/influxdb/influxdb/pull/4130","diff_url":"https://github.com/influxdb/influxdb/pull/4130.diff","patch_url":"https://github.com/influxdb/influxdb/pull/4130.patch"},"body":"Instead of rounding up the points, sorting and then slicing, keep a\r\nheap that allows us to quickly see if the point needs to be in the\r\nset. This cuts a top query on a dataset of 8 million points from 35\r\nseconds to 11 seconds."},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/141103509","html_url":"https://github.com/influxdb/influxdb/pull/4130#issuecomment-141103509","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/4130","id":141103509,"user":{"login":"DanielMorsing","id":545573,"avatar_url":"https://avatars.githubusercontent.com/u/545573?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielMorsing","html_url":"https://github.com/DanielMorsing","followers_url":"https://api.github.com/users/DanielMorsing/followers","following_url":"https://api.github.com/users/DanielMorsing/following{/other_user}","gists_url":"https://api.github.com/users/DanielMorsing/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielMorsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielMorsing/subscriptions","organizations_url":"https://api.github.com/users/DanielMorsing/orgs","repos_url":"https://api.github.com/users/DanielMorsing/repos","events_url":"https://api.github.com/users/DanielMorsing/events{/privacy}","received_events_url":"https://api.github.com/users/DanielMorsing/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T14:26:43Z","updated_at":"2015-09-17T14:26:43Z","body":"Hold off on reviewing this. The behavior change in the system test is NOT because of the new behavior."}}