~/talk

Maxing out SQLite performance

Talkat Android Worldwide 2022 · 2022-01-25..01-26· [databases, android]
links:none on file
slides:none on file

Shows concrete index strategies for SQLite: single, composite, partial, expression and covering indexes; B‑tree storage and use of EXPLAIN QUERY PLAN. On a 1M‑row test a sender lookup drops from 53 ms to 1 ms with an index. Notes Room supports single/multi‑column indexes but partial and expression indexes not supported in Room so migrations must run raw SQL. Highlights reactive re‑emit bugs from the invalidation tracker and the fix using distinctUntilChanged. Also warns that SQLite views are read‑only and not materialized.

AI-written summary · about

  1. 0:00Start
  2. 6:48Sample problem
  3. 9:39Single column index - continued
  4. 12:41Partial Index
  5. 15:31Expression-based Index
  6. 17:01Covering Index
  7. 19:09Room (support and compatibility)
  8. 21:19Potential issue in the reactive world!
  9. 24:56Database Triggers & Room - continued
  10. 28:45Concerns around Database Views in SQLite
~/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.