{"action":"created","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/3631","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/3631/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/3631/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/3631/events","html_url":"https://github.com/medic/medic-webapp/issues/3631","id":241191090,"number":3631,"title":"Bulk fetch hydrated docs","user":{"login":"estellecomment","id":911434,"avatar_url":"https://avatars2.githubusercontent.com/u/911434?v=3","gravatar_id":"","url":"https://api.github.com/users/estellecomment","html_url":"https://github.com/estellecomment","followers_url":"https://api.github.com/users/estellecomment/followers","following_url":"https://api.github.com/users/estellecomment/following{/other_user}","gists_url":"https://api.github.com/users/estellecomment/gists{/gist_id}","starred_url":"https://api.github.com/users/estellecomment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estellecomment/subscriptions","organizations_url":"https://api.github.com/users/estellecomment/orgs","repos_url":"https://api.github.com/users/estellecomment/repos","events_url":"https://api.github.com/users/estellecomment/events{/privacy}","received_events_url":"https://api.github.com/users/estellecomment/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-07T08:17:18Z","updated_at":"2017-07-07T17:11:44Z","closed_at":null,"body":"`sentinel/transitions/multi_form_alerts.js` needs to bulk fetch hydrated docs. Currently `sentinel/lib/lineage.js` only has single doc fetch.\r\n\r\nImplement bulk fetch hydrated docs.\r\nWe'll need to fetch lineage from `docs_by_id_lineage` view one by one, but after than the contacts/parents to link can all be fetched in one bulk query.\r\n\r\n(from #3416)"},"comment":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/comments/313740286","html_url":"https://github.com/medic/medic-webapp/issues/3631#issuecomment-313740286","issue_url":"https://api.github.com/repos/medic/medic-webapp/issues/3631","id":313740286,"user":{"login":"estellecomment","id":911434,"avatar_url":"https://avatars2.githubusercontent.com/u/911434?v=3","gravatar_id":"","url":"https://api.github.com/users/estellecomment","html_url":"https://github.com/estellecomment","followers_url":"https://api.github.com/users/estellecomment/followers","following_url":"https://api.github.com/users/estellecomment/following{/other_user}","gists_url":"https://api.github.com/users/estellecomment/gists{/gist_id}","starred_url":"https://api.github.com/users/estellecomment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estellecomment/subscriptions","organizations_url":"https://api.github.com/users/estellecomment/orgs","repos_url":"https://api.github.com/users/estellecomment/repos","events_url":"https://api.github.com/users/estellecomment/events{/privacy}","received_events_url":"https://api.github.com/users/estellecomment/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T17:11:44Z","updated_at":"2017-07-07T17:11:44Z","body":"Additional performance issue : \r\n`getReportsWithinTimeWindow` queries reports_by_date` view, within the time window. On big instances, and/or with long time window, that could be a lot of reports and cause OOMs. \r\n\r\nMake the `getReportsWithinTimeWindow` and the report counting run on batches of reports."}}
{"actor":{"display_login":"estellecomment"}}