How to load thousands records to Realm correctly?

Viewed 1383

I'm trying to save about 8000 records into the disk, using Realm, but it's blocking UI. As a result, I use Realm.asyncOpen that performs data saving in background thread.

The problem is 100% CPU usage when I try to save big amount of records this manner.

How to load thousands records to Realm correctly?

2 Answers
Related