{"action":"created","issue":{"url":"https://api.github.com/repos/crits/crits/issues/835","repository_url":"https://api.github.com/repos/crits/crits","labels_url":"https://api.github.com/repos/crits/crits/issues/835/labels{/name}","comments_url":"https://api.github.com/repos/crits/crits/issues/835/comments","events_url":"https://api.github.com/repos/crits/crits/issues/835/events","html_url":"https://github.com/crits/crits/pull/835","id":184151117,"number":835,"title":"Only Write Target email_count to DB if Value Changes","user":{"login":"brlogan","id":3629795,"avatar_url":"https://avatars.githubusercontent.com/u/3629795?v=3","gravatar_id":"","url":"https://api.github.com/users/brlogan","html_url":"https://github.com/brlogan","followers_url":"https://api.github.com/users/brlogan/followers","following_url":"https://api.github.com/users/brlogan/following{/other_user}","gists_url":"https://api.github.com/users/brlogan/gists{/gist_id}","starred_url":"https://api.github.com/users/brlogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brlogan/subscriptions","organizations_url":"https://api.github.com/users/brlogan/orgs","repos_url":"https://api.github.com/users/brlogan/repos","events_url":"https://api.github.com/users/brlogan/events{/privacy}","received_events_url":"https://api.github.com/users/brlogan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T07:08:23Z","updated_at":"2016-10-20T07:08:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/crits/crits/pulls/835","html_url":"https://github.com/crits/crits/pull/835","diff_url":"https://github.com/crits/crits/pull/835.diff","patch_url":"https://github.com/crits/crits/pull/835.patch"},"body":"Every time the mapreduce job runs, regardless of whether or not the email_count has changed, CRITs re-writes to the DB each Target where the count is not zero. While somewhat trivial, unnecessary DB write operations should probably be avoided.  Additionally, the write operation updates the \"modified\" timestamp, which could be misleading.\r\n\r\nSame thing for division email_count."},"comment":{"url":"https://api.github.com/repos/crits/crits/issues/comments/255026408","html_url":"https://github.com/crits/crits/pull/835#issuecomment-255026408","issue_url":"https://api.github.com/repos/crits/crits/issues/835","id":255026408,"user":{"login":"mention-bot","id":15710697,"avatar_url":"https://avatars.githubusercontent.com/u/15710697?v=3","gravatar_id":"","url":"https://api.github.com/users/mention-bot","html_url":"https://github.com/mention-bot","followers_url":"https://api.github.com/users/mention-bot/followers","following_url":"https://api.github.com/users/mention-bot/following{/other_user}","gists_url":"https://api.github.com/users/mention-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mention-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mention-bot/subscriptions","organizations_url":"https://api.github.com/users/mention-bot/orgs","repos_url":"https://api.github.com/users/mention-bot/repos","events_url":"https://api.github.com/users/mention-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mention-bot/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T07:08:27Z","updated_at":"2016-10-20T07:08:27Z","body":"@brlogan, thanks for your PR! By analyzing the history of the files in this pull request, we identified @mgoffin, @wxsBSD and @thelok to be potential reviewers."}}
{"actor":{"display_login":"mention-bot"}}