~/talk

Parallel Query Running with Gatsby 4

Talkat GatsbyCamp Fall 2021 · on Thursday, 2021-09-16· [web-performance, frontend-architecture]
slides:none on file

Parallel query running re-architects Gatsby to run GraphQL page and static queries across worker processes, using lmdb-store shared DB to exchange data and build artifacts, which lets builds utilize all CPU cores instead of one. Real sites see large wins: 27,000-page Contentful site: 2.5x faster query running, 9,000-page MDX site: 3x faster. Enable via the Gatsby 4 preview default or a config flag; benefits appear for query-heavy, CPU-bound projects.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:05Demo of parallel query running
  3. 3:37Why static sites matter
  4. 5:19The JAM tax and build trade-offs
  5. 6:21What is query running
  6. 8:49Query running challenges
  7. 9:33Parallel query running concept
  8. 11:16Underlying architecture changes
  9. 13:24Future possibilities with LMDB
  10. 14:29Performance improvements explained
  11. 15:34Gatsby’s speed and scale innovations
  12. 17:20Deferred static generation
  13. 18:02Real-world performance gains
  14. 19:24How to use parallel query running
  15. 20:27Closing and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.