-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Remove image downloading out of query-running for contentful #24220
Comments
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Related: #24679 |
This will be fixed in the next major version as it requires potentially breaking refactoring to reduce the network requests. See #25249 |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
This ticket is directly related #24679 (comment) |
Hey there, I wonder how you'd achieve that. Creating these previews is based on the actual query result, we do not need to download 20px variants for all images stored in Contentful, we "just" have to do it for these who are actually rendered with gatsb(-plugin)-image. Alternatively we might have some king of separate cache for these, that way we could download previews beforehand, store them in the folder and only delete/replace when the actual file changes. Might add some more network requests to the initial load, but should save a lot later on. What have been your thoughts when opening this? Benedikt |
@wardpeet I am still certain that we need to download these while running queries and we can not solve this issue. Should we close it? |
We can close it as per Benedikt 👍 |
Summary
Currently contentful does base64 generating during query-running. It reduces the amount of data being downloaded and process by contentful but we only run 4 queries at a time so this slowdown query-running.
gatsby/packages/gatsby-source-contentful/src/extend-node-type.js
Lines 51 to 77 in 2c38a9d
Motivation
Make query-running faster
The text was updated successfully, but these errors were encountered: