Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load graphs on request for Parcel-query #9443

Draft
wants to merge 24 commits into
base: v2
Choose a base branch
from

Conversation

irismoini
Copy link
Contributor

↪️ Pull Request

Parcel-query currently uses loadGraphs to load all of Parcel’s graphs at startup. This PR modifies Parcel-query to only load the graphs required for the query being performed for performance improvements.

💻 Examples

For example, instead of calling loadGraph on startup which loads all of Parcel's graphs, only the necessary graph will be loaded. In the case of getBundles, the bundleGraph and bundleInfo (and thus requestTracker) are needed, but the assetGraph is not so that graph is not loaded.

🚨 Test instructions

Tested Parcel-queries such as getBundles, inspectCache, etc. manually on a cache produced by a full build of Jira Frontend.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@irismoini irismoini self-assigned this Dec 14, 2023
@irismoini irismoini marked this pull request as draft December 15, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant