https://kotlinlang.org logo
#room
Title
# room
p

Peter Enyedi

02/29/2024, 3:10 PM
Hey! Does any of you know if there is a difference performance-wise deleting rows from a table one-by-one from a for loop, or passing the whole list to Room to delete? Thanks!
not kotlin but kotlin colored 1
y

yigit

04/23/2024, 3:52 PM
if you pass them all together, Room will delete them in a transaction which will be faster. but if you did call 1 by 1 in a transaction, it should be close to equal.
🙏 1