EventInsertLiveObserver: change of delete method (should be faster)

This commit is contained in:
ganfra 2020-07-11 13:27:49 +02:00
parent 0412fabbd2
commit e7804af2f7
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ internal class EventInsertLiveObserver @Inject constructor(@SessionDatabase real
it.process(realm, domainEvent)
}
}
realm.where(EventInsertEntity::class.java).findAll().deleteAllFromRealm()
realm.delete(EventInsertEntity::class.java)
}
}
}