Room and Workers. Spoiler alert: With Coroutines
summary
Explains how Room’s suspend DAO functions move database work off the UI thread by switching executors and keep begin/commit transactions so inserts don’t freeze the app, how Room + Kotlin Flow streams turn queries into observable, cold streams that emit updates, why migrations still often require table‑by‑table SQL, and how WorkManager’s CoroutineWorker exposes a suspending doWork with automatic retries while periodic jobs have a 15 minute minimum interval and battery/network constraints.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:26Coroutines are like a thread
- 5:18SQLite as a solution
- 9:24Room transactions
- 9:55Room: What is really going on?
- 14:41Room: Suspendable is okay, but...?
- 20:09Non-periodic workers








