Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Setup incremental builds #7

Open
jacqui opened this issue May 13, 2020 · 6 comments
Open

Setup incremental builds #7

jacqui opened this issue May 13, 2020 · 6 comments
Labels
Blocked No progress can be made until other work is completed. Note the blocker in the comments. Priority: Low A nice-to-have in the sprint. This may get escalated later.

Comments

@jacqui
Copy link
Contributor

jacqui commented May 13, 2020

Handily enough Netlify emailed me with an actually useful tutorial on this very topic this morning:

https://www.netlify.com/blog/2020/04/23/enable-gatsby-incremental-builds-on-netlify/?utm_campaign=Gatsby+Builds+Promo+Email&utm_content=Gatsby+Builds+Promo+Email&utm_medium=email_action&utm_source=customer.io

@TylerFisher
Copy link
Contributor

Seems simple enough to implement, this line is concerning though:

This means that changes from a supported CMS — Gatsby supports Contentful, Sanity, DatoCMS and CosmicJS at the time of writing with WordPress and Drupal support in alpha — Gatsby will only rebuild the parts of the site affected by the changed data.

Does that mean because we're using Google Docs, we won't be able to take advantage of this?

@jacqui
Copy link
Contributor Author

jacqui commented May 17, 2020

Looking into this today as well. I'll test out how and when pages get rebuilt using incremental builds.

@jacqui
Copy link
Contributor Author

jacqui commented May 18, 2020

Hrm... so the results are a little mixed.

On the plus side, the incremental build process is a bit faster:

  • without incremental build: 11:21:15 AM: Finished processing build request in 2m35.906922196s
  • with incremental build: 11:29:40 AM: Finished processing build request in 1m53.69436929s

It does, however, rebuild the entire site. I think further investigation is warranted here.

@jacqui
Copy link
Contributor Author

jacqui commented May 21, 2020

Looks like the google-docs importer plugin folks are going to work on a caching solution!

cedricdelpoux/gatsby-source-google-docs#60

@TylerFisher TylerFisher added Blocked No progress can be made until other work is completed. Note the blocker in the comments. Priority: Low A nice-to-have in the sprint. This may get escalated later. labels May 26, 2020
@jacqui
Copy link
Contributor Author

jacqui commented Jun 10, 2020

No updates yet on the google docs plugin cache, but maybe I should try the gatsby cache netlify plugin (https://app.netlify.com/teams/jacqui/plugins/netlify-plugin-gatsby-cache/install) again now that it's out of beta.

@cedricdelpoux
Copy link

Hi @jacqui, it should work now! Please try and let me know

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Blocked No progress can be made until other work is completed. Note the blocker in the comments. Priority: Low A nice-to-have in the sprint. This may get escalated later.
Projects
None yet
Development

No branches or pull requests

3 participants