Improve performance of fields list rendering and application as a whole #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR greatly improves the performance of our fields list rendering and the application as a whole. The optimizations applied were:
gzip
compression to Grafana network requests (this will need to be enabled as well in production environments, but I enabled it here in the Docker container and saw dramatic gains)There's still more work to do here to get things as optimized as we can, but we're currently at a place where the three biggest causes for performance issues are:
Results
Below are screenshots from Lighthouse before/after this PR was applied. In both cases I tried to refresh once or twice before running the test to ensure that the network request was as fast as it reasonably could be.
Before:
After:
Resolves #37
Requirements (place an
x
in each[ ]
)