Epic Work Item take longer to load compared to its legacy version

Summary

When attempting to load &291, it takes 15+ seconds compared to loading the same in legacy view (1 second) with &291.

Examples

Root cause

On page load, Epic Work Item runs work_items/graphql/namespace_work_item_types.query.graphql which fetches whole epic work item object in a single request, this takes over 10 seconds consistently, whereas in legacy view, we load all the widgets independently after page load.

Possible solutions

Besides identifying and optimizing slower fields from the main work item query, we need to find offending widgets and separate them into their own queries to speed up the initial page load.

Edited by Amanda Rueda