to properly update list of items, this code snippet takes very long to execute:
realm.query<NewsReportDto>("title == $0", param)
.find()
.forEach { oldNewsReportDto ->
realm.write {
findLatest(oldNewsReportDto)?.apply {
title = objectToInsert.title
description = objectToInsert.description
}
}
}
use findAsync, executeTransaction
Обсуждают сегодня