~/talk

Fine-tuning Apollo Client's normalized cache

Talkat GraphQL Summit 2022 · 2022-10-03..10-05· [graphql, frontend-architecture]
slides:none on file

Explains how Apollo Client’s normalized cache stores a deduplicated lookup table of objects keyed by __typename + ID or custom keyFields, shows fetch policies (cache-first, cache-and-network, network-only) and when automatic merges happen versus when manual update functions are required, demonstrates eviction and garbage collection APIs with concrete cache-size changes (212 → 419 items) after a query, and shows that IDs plus stable keys are required for predictable UI updates.

AI-written summary · about

  1. 0:00Start
  2. 1:39Split data into individual objects
  3. 2:11Assigning unique identifiers
  4. 2:53Put the objects into a flattened data structure
  5. 5:34Garbage Collection & Eviction
~/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.