~/talk

Rule Your Realm

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [android]
links:none on file
slides:none on file

Blue Apron uses Realm as a fast, object‑based mobile DB because it’s simple to set up, has a reactive live query model and a handy Realm Browser, but it trips on two concrete problems: partial updates (Realm can’t tell missing keys from explicit nulls) so Blue Apron converts server JSON → network models → client JSON and uses Realm.createOrUpdateFromJson to preserve fields; and no cascading deletes so a scheduled mark‑and‑sweep reaper (retain boolean, JobScheduler, generated mark functions) removes orphaned objects. Watch for threading (one Realm per thread, use query+change listeners), native core size (~5 MB) and careful string‑based, tested migrations.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:58What is Realm and setup
  3. 8:08Advantages of Realm
  4. 10:13Partial updates problem
  5. 13:21Orphan objects issue
  6. 17:51Code generation for reaper
  7. 20:59Native code downsides
  8. 24:12Schema migrations challenges
  9. 27:21Threading limitations
  10. 31:12Summary 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.