I got this error while writing and modifying thousand of record:
Unrecoverable error. mmap() failed: Out of memory size
And I found out that this is due to the dimension that the transaction occupy on the device memory. So I split the single, big transaction in smaller transactions and now I don't get the error anymore. But I noticed that the default.realm file is getting bigger. I read that if the application does a lot of transactions this is normal, because each transaction also write a log in the same file where the data is stored
Is there a way to clear the unnecessary data? I already use Realm.compactRealm at the application startup but this doesn't seems to free all the unused space.