Improve prospectus slow page build/query times

Description

As a developer, I would like Prospectus build times to be faster to improve development speed, and reduce the time needed to deploy changes to the website.

Background

Gatsby includes a benchmarks directory (https://github.com/gatsbyjs/gatsby/tree/master/benchmarks) in its project that allows you to get estimates for speeds of various use cases. When running these benchmarks for roughly the same number of pages we create on prospectus (~13324), we see that our page queries, and especially our page builds are much slower than the benchmarks.

Gatsby create pages benchmark run:

Gatsby markdown benchmark run:

The relevant portions from a prospectus build:

Our page query speed is closer to the markdown benchmark, so that one may not be able to improved a ton, but it certainly seems like we can greatly improve our page build speed.

Another run of our page queries is absurdly slow

Acceptance Criteria
The page build speed (and hopefully the page query speed too) is improved to a level deemed acceptable by the team, with data collected on performance before and after the change.

Other Notes
https://www.gatsbyjs.org/blog/2019-01-28-building-a-large-ecommerce-website-with-gatsby-at-daniel-wellington/ has some notes on improving gatsby build times, although we likely will not want to take all the same steps they took for improving build time.

 

https://github.com/gatsbyjs/gatsby/issues/15628 Gatsby issue on this

Steps to Reproduce

None

Status

Story Points

None

Assignee

Unassigned

Reporter

Brandon Baker

Labels

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Sprint

Priority

Unset
Configure