General topic questions
SQLite Transactions
MediumOccasional
Free section · general topics & algorithms
Why wrap multi-step DB writes in a transaction?
Reveal model answer
Atomicity and performance. Room @Transaction on DAOs; fail all on error. Critical for sync engines.