~/talk

Cloud Firestore Data Modeling

Talkat Google I/O 2019 · 2019-05-07..05-09· [databases]
slides:none on file

Cloud Firestore indexes every field and serves queries in time proportional to the result set, not the dataset, so designs favor read-fast denormalized records but must respect limits: 1 MB document limit, 40,000 index fields, and roughly 1 write/sec per document. Menu items work best as subcollections to avoid sending huge documents; cross-subcollection searches require collection group queries. Billing is driven by documents touched, and server-side Cloud Functions are recommended to keep denormalized copies in sync safely.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Firebase
  3. 2:45Sequel
  4. 5:43No Sequel
  5. 9:21Documents Collections
  6. 15:15Menu
  7. 15:31Subcollection
  8. 15:50Document Limits
  9. 18:29Only Fetch Documents
  10. 18:47Data Usage
  11. 20:44Billing
  12. 21:54Is this bad
  13. 22:13Manual action
  14. 22:55One right answer
  15. 24:46Indexed documents
  16. 26:08Subcollections
  17. 26:42Collection Group Queries
  18. 31:28Security Rules
  19. 32:06Orders
  20. 34:09Duplicate Data
  21. 34:30Normalize Data
  22. 36:53Client Order
  23. 37:15Cloud Functions
  24. 39:19Get to Know Firestore
  25. 39:56Conclusion
~/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.