In the latest version of Realm doc, using
findAll() on main thread is not recommended, disabled by default, and can possibly cause ANR for heavy read state in the doc (RealmQuery (Realm 10.0.1))
However, I’m using an older version of Realm and the older doc (RealmQuery (Realm 6.0.0)) doesn’t say that it would drop frame or create ANRs.
My questions are:
- Is it still safe to use
findAll()on the main thread in an older version of Realm?
- What has changed with
findAll()in the latest version that would possibly cause frame drop or ANRs? I’m really interested in the underneath mechanism of how Realm is loading data now. If possible, can you please attach the related issue/PR in Github.
Thanks a lot!