{"action":"created","issue":{"url":"https://api.github.com/repos/esnet/esmond/issues/43","labels_url":"https://api.github.com/repos/esnet/esmond/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/esnet/esmond/issues/43/comments","events_url":"https://api.github.com/repos/esnet/esmond/issues/43/events","html_url":"https://github.com/esnet/esmond/pull/43","id":116201178,"number":43,"title":"Improve the performance of bulk timeseries creation","user":{"login":"tony-zhu","id":4692047,"avatar_url":"https://avatars.githubusercontent.com/u/4692047?v=3","gravatar_id":"","url":"https://api.github.com/users/tony-zhu","html_url":"https://github.com/tony-zhu","followers_url":"https://api.github.com/users/tony-zhu/followers","following_url":"https://api.github.com/users/tony-zhu/following{/other_user}","gists_url":"https://api.github.com/users/tony-zhu/gists{/gist_id}","starred_url":"https://api.github.com/users/tony-zhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony-zhu/subscriptions","organizations_url":"https://api.github.com/users/tony-zhu/orgs","repos_url":"https://api.github.com/users/tony-zhu/repos","events_url":"https://api.github.com/users/tony-zhu/events{/privacy}","received_events_url":"https://api.github.com/users/tony-zhu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T21:03:52Z","updated_at":"2015-11-10T22:53:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/esnet/esmond/pulls/43","html_url":"https://github.com/esnet/esmond/pull/43","diff_url":"https://github.com/esnet/esmond/pull/43.diff","patch_url":"https://github.com/esnet/esmond/pull/43.patch"},"body":"A hot fix for the bulk create of time series data.\r\n\r\nThe change took the PSEventTypes SQL query out of the for loop and only update the time_updated property once after the whole loop.\r\n\r\nIn our test environment, cloning a day's powstream data (1440 records) dropped from ~40 minutes to ~20 seconds through the REST API. \r\n\r\nOne down side of the change is that if there is one invalid datapoint in the middle of the input array, a BadRequest exception will be trigged. So the time_updated will not be updated."},"comment":{"url":"https://api.github.com/repos/esnet/esmond/issues/comments/155593766","html_url":"https://github.com/esnet/esmond/pull/43#issuecomment-155593766","issue_url":"https://api.github.com/repos/esnet/esmond/issues/43","id":155593766,"user":{"login":"jdugan1024","id":589276,"avatar_url":"https://avatars.githubusercontent.com/u/589276?v=3","gravatar_id":"","url":"https://api.github.com/users/jdugan1024","html_url":"https://github.com/jdugan1024","followers_url":"https://api.github.com/users/jdugan1024/followers","following_url":"https://api.github.com/users/jdugan1024/following{/other_user}","gists_url":"https://api.github.com/users/jdugan1024/gists{/gist_id}","starred_url":"https://api.github.com/users/jdugan1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdugan1024/subscriptions","organizations_url":"https://api.github.com/users/jdugan1024/orgs","repos_url":"https://api.github.com/users/jdugan1024/repos","events_url":"https://api.github.com/users/jdugan1024/events{/privacy}","received_events_url":"https://api.github.com/users/jdugan1024/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T22:53:38Z","updated_at":"2015-11-10T22:53:38Z","body":"@arlake228 I assume you will review this?"}}