Skip to content

Unbatch GraphQL queries

Natalia Tepluhina requested to merge ntepluhina-unbatch-queries into master

What does this MR do and why?

This MR introduces a feature flag for unbatching GraphQL queries. We plan to roll out this FF incrementally to learn the potential performance implication of unbatched queries.

It looks like unbatching made MR revert and cherry-pick specs flakier than they were so I am stubbing FF as disabled there. The actual functionality is not affected and tests pass around 40% of times on retry.

Screenshots or screen recordings

No visual changes

How to set up and validate locally

  1. Open any page that contains a good number of GraphQL queries (issue page is a good example)
  2. Check the number of graphql calls in the Network tab of devtools
  3. Enable unbatching feature flag
    Feature.enable(:unbatch_graphql_queries)
  4. Refresh the page
  5. You should have much more graphql calls and every request should contain exactly one operation

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Natalia Tepluhina

Merge request reports

Loading