~/lightning

Speedy Component Models

Lightningat EmberFest 2022 · 2022-09-22..09-23· [frontend-architecture]
slides:none on file

Claims that using per-component models plus Json API sparse field sets cuts server work, network payload and client parsing for heavy component pages — one example shows a single request touching ~200 model instances and responses bloating to ~400KB. Implementation uses Ember Data and jsonapi-resources: component model files mirror only needed attributes, an adapter builds sparse field sets recursively, and a serializer renamespaced payload to hydrate those component-scoped models.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45fetching all model attributes
  3. 4:02sparse field sets
  4. 5:36the solution
~/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.