{"action":"created","issue":{"url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9268","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9268/labels{/name}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9268/comments","events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9268/events","html_url":"https://github.com/dimagi/commcare-hq/pull/9268","id":118696723,"number":9268,"title":"Replace casegroups_groups/by_domain","user":{"login":"nickpell","id":1757035,"avatar_url":"https://avatars.githubusercontent.com/u/1757035?v=3","gravatar_id":"","url":"https://api.github.com/users/nickpell","html_url":"https://github.com/nickpell","followers_url":"https://api.github.com/users/nickpell/followers","following_url":"https://api.github.com/users/nickpell/following{/other_user}","gists_url":"https://api.github.com/users/nickpell/gists{/gist_id}","starred_url":"https://api.github.com/users/nickpell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickpell/subscriptions","organizations_url":"https://api.github.com/users/nickpell/orgs","repos_url":"https://api.github.com/users/nickpell/repos","events_url":"https://api.github.com/users/nickpell/events{/privacy}","received_events_url":"https://api.github.com/users/nickpell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dimagi/commcare-hq/labels/No%20lint%20errors","name":"No lint errors","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T20:31:21Z","updated_at":"2015-11-25T14:41:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9268","html_url":"https://github.com/dimagi/commcare-hq/pull/9268","diff_url":"https://github.com/dimagi/commcare-hq/pull/9268.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/9268.patch"},"body":"@dannyroberts cc: @NoahCarnahan \r\n\r\nCurrently on prod no domain has more than 15 case groups.  Not sure how the number of case groups is expected to scale for larger projects.\r\n\r\nAn additional optimization would be to use actual pagination/counting at the db level."},"comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments/159626872","html_url":"https://github.com/dimagi/commcare-hq/pull/9268#issuecomment-159626872","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9268","id":159626872,"user":{"login":"nickpell","id":1757035,"avatar_url":"https://avatars.githubusercontent.com/u/1757035?v=3","gravatar_id":"","url":"https://api.github.com/users/nickpell","html_url":"https://github.com/nickpell","followers_url":"https://api.github.com/users/nickpell/followers","following_url":"https://api.github.com/users/nickpell/following{/other_user}","gists_url":"https://api.github.com/users/nickpell/gists{/gist_id}","starred_url":"https://api.github.com/users/nickpell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickpell/subscriptions","organizations_url":"https://api.github.com/users/nickpell/orgs","repos_url":"https://api.github.com/users/nickpell/repos","events_url":"https://api.github.com/users/nickpell/events{/privacy}","received_events_url":"https://api.github.com/users/nickpell/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T14:41:50Z","updated_at":"2015-11-25T14:41:50Z","body":":white_check_mark: "}}