Update documentation for polling performance
Follow-up from !74605 (comment 735545746):
I think what's missing here (which looks like is not mentioned in the docs; I'll look into updating that) is the Visibility check. We can probably leverage that so we're only polling when the "Running" tab is visible. That should lessen the load a little. This uses toggleQueryPollingByVisibility. You can see it being used here in
pipeline_editor/components/header/pipeline_status.vue
.
I've also been asked before on how to test etag caching, which only means that we should improve our documentation on how to implement this.
We should update the documentation in https://docs.gitlab.com/ee/development/fe_guide/graphql.html#polling-and-performance with the following:
- Add information on adding a visibility check for polling, when appropriate
- More information on how to test that etag caching works
- Add reference MRs as examples?