Open flavioriper opened 9 months ago
@travjenkins is this still relevant?
Yeah - but it'll probably take some time to get done. I think it is pretty low priority as we've been okay with longer build times so far.
@altitude-lucas I'm gonna pull this from the official backlog... I feel like there is a mountain of work that can be done before this is ever picked up.
Things to think about:
Problems
Images
Not caching images at all. This means they are downloaded AND optimized every build.
Pages
Again - we have a lot of something without cache.
Create Pages call having long running query
Solutions
Image Processors
Possibly use an image hosting services that "automagically" handles this for us. Would be best if that could work with Strapi as is.
Caching
Would be great if we could cache more stuff that is handled every build. However, this was tried before and cause some issues. Still need to find out exactly why there were issues.
Chunking
We could look into breaking the build up a bit more. This could be especially helpful for content changes since we should have an idea of what pages could change. However, chunking might end up just getting us the exact same thing as caching but with a lot more steps / manual work
Review queries
Could take a look at queries and ensure we are only ever fetching the necessary data.
Notes
The document BUILD OPTIMIZATION SPYKE.pdf was written for https://github.com/estuary/marketing-site/issues/172