Commit Graph

1 Commits

Author SHA1 Message Date
Jason Gillett 1f9174aa8d Create new custom graphql connection for collection structures
refs VICE-3252
flag=react_inbox

This commit removes the need to load all Contexts and All Users in a
Paginated graphql recipients request.

In an environment with 17k users and 500 enrollments the time goes down from
75 seconds to 12 seconds

The change should be significantly larger for users with more
messageable_users.

The original issue will still exist for graphql recipeint requests that
Do not have pagination.

Test Plan
1. Verify that recipient lists in the react inbox work correctly
2. Performance testing will be done in Beta environmenti

** no Specs were added since this is fixing an issue that is only seen
When there are 15k messageable_users or more. Existing specs verifying
the correct recipient behavior should be enough **

Change-Id: I522132db226f5d31f1cf0b38c4504e97e01e2664
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/307765
QA-Review: Chawn Neal <chawn.neal@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2022-12-20 20:42:40 +00:00