Hello everyone, I am currently working on an android app which uses realm database. We are using architecture which abstracts RealmObjects obtained from Realm queries and converting them to local instances (standalone model replicating RealmObjects data).
My problem is- When we have just 550 RealmResults (with several nested objects and nested RealmResults inside each item) and we try to use map() function to transform the RealmObjects to the local models there is ~3s delay. This is a serious performance issue we are facing with only 550 rows of the parent RealmResults list.
Using copyFromRealm() and directly using this List<RealmObjects> reduces the delay to ~1s but as the rows in db will increase, so will this delay.
Can anyone please suggest a better way to reduce this delay and keep using the local model instances?