~/talk

Inside the Room

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [databases, android]
links:none on file
slides:none on file

Explains how Room maps AndroidX and framework APIs onto SQLite internals: a single-file database with one writable connection and many concurrent readers, five lock states (unlocked, shared, reserved, pending, exclusive), and why Room enables write-ahead log by default to increase concurrency. Describes transactions (use runInTransaction to batch writes), the executor queue that serializes writers, and the trigger-based invalidation tracker that turns table changes into LiveData/Rx/flow updates. Practical takeaways: batch writes, prefer WAL, expect one writer.

AI-written summary · about

  1. 0:00Introduction to Room internals
  2. 2:10SQLite architecture overview
  3. 7:15Threading and locks in SQLite
  4. 17:13Database connections in Android
  5. 21:55Room and threading models
  6. 24:02Transactions in SQLite
  7. 28:42Triggers and invalidation tracking
  8. 33:21Transactions and executors in Room
  9. 36:13Q&A and closing
~/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.