{"action":"opened","number":398,"pull_request":{"url":"https://api.github.com/repos/nilmtk/nilmtk/pulls/398","id":36760896,"html_url":"https://github.com/nilmtk/nilmtk/pull/398","diff_url":"https://github.com/nilmtk/nilmtk/pull/398.diff","patch_url":"https://github.com/nilmtk/nilmtk/pull/398.patch","issue_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/398","number":398,"state":"open","locked":false,"title":"Views Not Tables / Speed Increase","user":{"login":"ahersey","id":5116197,"avatar_url":"https://avatars.githubusercontent.com/u/5116197?v=3","gravatar_id":"","url":"https://api.github.com/users/ahersey","html_url":"https://github.com/ahersey","followers_url":"https://api.github.com/users/ahersey/followers","following_url":"https://api.github.com/users/ahersey/following{/other_user}","gists_url":"https://api.github.com/users/ahersey/gists{/gist_id}","starred_url":"https://api.github.com/users/ahersey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahersey/subscriptions","organizations_url":"https://api.github.com/users/ahersey/orgs","repos_url":"https://api.github.com/users/ahersey/repos","events_url":"https://api.github.com/users/ahersey/events{/privacy}","received_events_url":"https://api.github.com/users/ahersey/received_events","type":"User","site_admin":false},"body":"Changed information_schema.tables to information_schema.views to adjust for the restructured Dataport. (TODO) There's only one electricity_egauge_minutes table now, so much of that section is no longer necessary; I didn't adjust for that here.\r\n\r\nTo increase the speed of the converter, the \"get buildings present in this table\" and \"get first and last timestamps for this house in this table\" sections now pull the required information from the metadata table rather than the electricity_egauge_minutes table. This requires much less searching, since the metadata table is much smaller. It should remain accurate since the metadata table is refreshed every time the eGauge tables are refreshed.","created_at":"2015-06-02T18:45:44Z","updated_at":"2015-06-02T18:45:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nilmtk/nilmtk/pulls/398/commits","review_comments_url":"https://api.github.com/repos/nilmtk/nilmtk/pulls/398/comments","review_comment_url":"https://api.github.com/repos/nilmtk/nilmtk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/398/comments","statuses_url":"https://api.github.com/repos/nilmtk/nilmtk/statuses/e50049994541db9f0eeebe90bbf0b2b260dd40c3","head":{"label":"ahersey:patch-2","ref":"patch-2","sha":"e50049994541db9f0eeebe90bbf0b2b260dd40c3","user":{"login":"ahersey","id":5116197,"avatar_url":"https://avatars.githubusercontent.com/u/5116197?v=3","gravatar_id":"","url":"https://api.github.com/users/ahersey","html_url":"https://github.com/ahersey","followers_url":"https://api.github.com/users/ahersey/followers","following_url":"https://api.github.com/users/ahersey/following{/other_user}","gists_url":"https://api.github.com/users/ahersey/gists{/gist_id}","starred_url":"https://api.github.com/users/ahersey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahersey/subscriptions","organizations_url":"https://api.github.com/users/ahersey/orgs","repos_url":"https://api.github.com/users/ahersey/repos","events_url":"https://api.github.com/users/ahersey/events{/privacy}","received_events_url":"https://api.github.com/users/ahersey/received_events","type":"User","site_admin":false},"repo":{"id":36681914,"name":"nilmtk","full_name":"ahersey/nilmtk","owner":{"login":"ahersey","id":5116197,"avatar_url":"https://avatars.githubusercontent.com/u/5116197?v=3","gravatar_id":"","url":"https://api.github.com/users/ahersey","html_url":"https://github.com/ahersey","followers_url":"https://api.github.com/users/ahersey/followers","following_url":"https://api.github.com/users/ahersey/following{/other_user}","gists_url":"https://api.github.com/users/ahersey/gists{/gist_id}","starred_url":"https://api.github.com/users/ahersey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahersey/subscriptions","organizations_url":"https://api.github.com/users/ahersey/orgs","repos_url":"https://api.github.com/users/ahersey/repos","events_url":"https://api.github.com/users/ahersey/events{/privacy}","received_events_url":"https://api.github.com/users/ahersey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahersey/nilmtk","description":"Non-Intrusive Load Monitoring Toolkit (nilmtk)","fork":true,"url":"https://api.github.com/repos/ahersey/nilmtk","forks_url":"https://api.github.com/repos/ahersey/nilmtk/forks","keys_url":"https://api.github.com/repos/ahersey/nilmtk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahersey/nilmtk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahersey/nilmtk/teams","hooks_url":"https://api.github.com/repos/ahersey/nilmtk/hooks","issue_events_url":"https://api.github.com/repos/ahersey/nilmtk/issues/events{/number}","events_url":"https://api.github.com/repos/ahersey/nilmtk/events","assignees_url":"https://api.github.com/repos/ahersey/nilmtk/assignees{/user}","branches_url":"https://api.github.com/repos/ahersey/nilmtk/branches{/branch}","tags_url":"https://api.github.com/repos/ahersey/nilmtk/tags","blobs_url":"https://api.github.com/repos/ahersey/nilmtk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahersey/nilmtk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahersey/nilmtk/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahersey/nilmtk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahersey/nilmtk/statuses/{sha}","languages_url":"https://api.github.com/repos/ahersey/nilmtk/languages","stargazers_url":"https://api.github.com/repos/ahersey/nilmtk/stargazers","contributors_url":"https://api.github.com/repos/ahersey/nilmtk/contributors","subscribers_url":"https://api.github.com/repos/ahersey/nilmtk/subscribers","subscription_url":"https://api.github.com/repos/ahersey/nilmtk/subscription","commits_url":"https://api.github.com/repos/ahersey/nilmtk/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahersey/nilmtk/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahersey/nilmtk/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahersey/nilmtk/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahersey/nilmtk/contents/{+path}","compare_url":"https://api.github.com/repos/ahersey/nilmtk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahersey/nilmtk/merges","archive_url":"https://api.github.com/repos/ahersey/nilmtk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahersey/nilmtk/downloads","issues_url":"https://api.github.com/repos/ahersey/nilmtk/issues{/number}","pulls_url":"https://api.github.com/repos/ahersey/nilmtk/pulls{/number}","milestones_url":"https://api.github.com/repos/ahersey/nilmtk/milestones{/number}","notifications_url":"https://api.github.com/repos/ahersey/nilmtk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahersey/nilmtk/labels{/name}","releases_url":"https://api.github.com/repos/ahersey/nilmtk/releases{/id}","created_at":"2015-06-01T18:59:04Z","updated_at":"2015-06-01T18:59:06Z","pushed_at":"2015-06-02T18:45:17Z","git_url":"git://github.com/ahersey/nilmtk.git","ssh_url":"git@github.com:ahersey/nilmtk.git","clone_url":"https://github.com/ahersey/nilmtk.git","svn_url":"https://github.com/ahersey/nilmtk","homepage":"http://nilmtk.github.io/nilmtk/master/index.html","size":52901,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"nilmtk:master","ref":"master","sha":"764c993b67b3f46cbb241201fddf4bb696b4ba36","user":{"login":"nilmtk","id":6094836,"avatar_url":"https://avatars.githubusercontent.com/u/6094836?v=3","gravatar_id":"","url":"https://api.github.com/users/nilmtk","html_url":"https://github.com/nilmtk","followers_url":"https://api.github.com/users/nilmtk/followers","following_url":"https://api.github.com/users/nilmtk/following{/other_user}","gists_url":"https://api.github.com/users/nilmtk/gists{/gist_id}","starred_url":"https://api.github.com/users/nilmtk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilmtk/subscriptions","organizations_url":"https://api.github.com/users/nilmtk/orgs","repos_url":"https://api.github.com/users/nilmtk/repos","events_url":"https://api.github.com/users/nilmtk/events{/privacy}","received_events_url":"https://api.github.com/users/nilmtk/received_events","type":"Organization","site_admin":false},"repo":{"id":14891877,"name":"nilmtk","full_name":"nilmtk/nilmtk","owner":{"login":"nilmtk","id":6094836,"avatar_url":"https://avatars.githubusercontent.com/u/6094836?v=3","gravatar_id":"","url":"https://api.github.com/users/nilmtk","html_url":"https://github.com/nilmtk","followers_url":"https://api.github.com/users/nilmtk/followers","following_url":"https://api.github.com/users/nilmtk/following{/other_user}","gists_url":"https://api.github.com/users/nilmtk/gists{/gist_id}","starred_url":"https://api.github.com/users/nilmtk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilmtk/subscriptions","organizations_url":"https://api.github.com/users/nilmtk/orgs","repos_url":"https://api.github.com/users/nilmtk/repos","events_url":"https://api.github.com/users/nilmtk/events{/privacy}","received_events_url":"https://api.github.com/users/nilmtk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nilmtk/nilmtk","description":"Non-Intrusive Load Monitoring Toolkit (nilmtk)","fork":false,"url":"https://api.github.com/repos/nilmtk/nilmtk","forks_url":"https://api.github.com/repos/nilmtk/nilmtk/forks","keys_url":"https://api.github.com/repos/nilmtk/nilmtk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nilmtk/nilmtk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nilmtk/nilmtk/teams","hooks_url":"https://api.github.com/repos/nilmtk/nilmtk/hooks","issue_events_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/events{/number}","events_url":"https://api.github.com/repos/nilmtk/nilmtk/events","assignees_url":"https://api.github.com/repos/nilmtk/nilmtk/assignees{/user}","branches_url":"https://api.github.com/repos/nilmtk/nilmtk/branches{/branch}","tags_url":"https://api.github.com/repos/nilmtk/nilmtk/tags","blobs_url":"https://api.github.com/repos/nilmtk/nilmtk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nilmtk/nilmtk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nilmtk/nilmtk/git/refs{/sha}","trees_url":"https://api.github.com/repos/nilmtk/nilmtk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nilmtk/nilmtk/statuses/{sha}","languages_url":"https://api.github.com/repos/nilmtk/nilmtk/languages","stargazers_url":"https://api.github.com/repos/nilmtk/nilmtk/stargazers","contributors_url":"https://api.github.com/repos/nilmtk/nilmtk/contributors","subscribers_url":"https://api.github.com/repos/nilmtk/nilmtk/subscribers","subscription_url":"https://api.github.com/repos/nilmtk/nilmtk/subscription","commits_url":"https://api.github.com/repos/nilmtk/nilmtk/commits{/sha}","git_commits_url":"https://api.github.com/repos/nilmtk/nilmtk/git/commits{/sha}","comments_url":"https://api.github.com/repos/nilmtk/nilmtk/comments{/number}","issue_comment_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/comments{/number}","contents_url":"https://api.github.com/repos/nilmtk/nilmtk/contents/{+path}","compare_url":"https://api.github.com/repos/nilmtk/nilmtk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nilmtk/nilmtk/merges","archive_url":"https://api.github.com/repos/nilmtk/nilmtk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nilmtk/nilmtk/downloads","issues_url":"https://api.github.com/repos/nilmtk/nilmtk/issues{/number}","pulls_url":"https://api.github.com/repos/nilmtk/nilmtk/pulls{/number}","milestones_url":"https://api.github.com/repos/nilmtk/nilmtk/milestones{/number}","notifications_url":"https://api.github.com/repos/nilmtk/nilmtk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nilmtk/nilmtk/labels{/name}","releases_url":"https://api.github.com/repos/nilmtk/nilmtk/releases{/id}","created_at":"2013-12-03T11:39:12Z","updated_at":"2015-05-27T19:18:58Z","pushed_at":"2015-05-23T07:48:15Z","git_url":"git://github.com/nilmtk/nilmtk.git","ssh_url":"git@github.com:nilmtk/nilmtk.git","clone_url":"https://github.com/nilmtk/nilmtk.git","svn_url":"https://github.com/nilmtk/nilmtk","homepage":"http://nilmtk.github.io/nilmtk/master/index.html","size":52901,"stargazers_count":80,"watchers_count":80,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":115,"forks":47,"open_issues":115,"watchers":80,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilmtk/nilmtk/pulls/398"},"html":{"href":"https://github.com/nilmtk/nilmtk/pull/398"},"issue":{"href":"https://api.github.com/repos/nilmtk/nilmtk/issues/398"},"comments":{"href":"https://api.github.com/repos/nilmtk/nilmtk/issues/398/comments"},"review_comments":{"href":"https://api.github.com/repos/nilmtk/nilmtk/pulls/398/comments"},"review_comment":{"href":"https://api.github.com/repos/nilmtk/nilmtk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilmtk/nilmtk/pulls/398/commits"},"statuses":{"href":"https://api.github.com/repos/nilmtk/nilmtk/statuses/e50049994541db9f0eeebe90bbf0b2b260dd40c3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":13,"changed_files":1}}