~/talk

Advanced offline caching techniques in Cloud Firestore

Talkat Firebase Summit 2022 · on Tuesday, 2022-10-18· [databases, web-performance]
links:none on file
slides:none on file

A demo e-commerce app called FireSale shows how the Firestore SDK cache provides offline reads and queues mutations using getDocs, addDoc and onSnapshot, with persistence via enableIndexedDbPersistence (enabled by default on Android/iOS, manual on web). Bundles generated by an Admin SDK and stored in Cloud Storage are loaded with loadBundle so 10,000 users avoid repeated server reads, cutting an estimated 3,750,000 reads to about 2,250 billed reads (>99% savings). SDK-side acceleration uses client-side indexing via setIndexConfiguration to keep cache queries fast.

AI-written summary · about

  1. 0:00Introduction
  2. 0:44Demo
  3. 5:17Cost model
  4. 9:30Clientside indexing
~/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.