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

perf: normalize engines static query context #37764

Merged
merged 9 commits into from
Mar 23, 2023
Merged

perf: normalize engines static query context #37764

merged 9 commits into from
Mar 23, 2023

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Mar 20, 2023

Description

This "splits" currently generated sq-context (which are combined static query results for each page and slice template) into individual static query results. Some filtering is done to only collect static queries that are actually used in page templates that will be used by engines (SSR/DSG). Currently filtering is not done for slice templates as it's not that straight forward to do with slice overrides and this PR as-is is already potentially improving size of generated engines. Slice templates filtering is potential follow up to this if this will be not enough.

Documentation

Tests

Related Issues

Related to #37713

Co-authored-by: LekoArts <lekoarts@gmail.com>
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 20, 2023
@pieh pieh added topic: render-mode Related to Gatsby's different rendering modes and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 20, 2023
@pieh pieh marked this pull request as ready for review March 23, 2023 10:49
@pieh pieh merged commit 2f3f372 into master Mar 23, 2023
@pieh pieh deleted the split-sq-context branch March 23, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: render-mode Related to Gatsby's different rendering modes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants