Realm - Is there a way to release objects from RealmResults after processing?
<p>I have to restore my view data from <code>ContentCache</code>.</p>

<p>There are up to 300 records. Each of them is a huge json format string(lengh > 86400).</p>

<p>I always get a <code>OOM</code> while it's restoring it.</p>

<pre><code>RealmResults&lt;ContentCache&gt; result = realmHelper.getContentCacheService(realm).listAll(realm);

for( ContentCache cache : result ){
    refreshContentPage(cache);
}
</code></pre>

<p>or</p>

<pre><code>int size = realmHelper.getContentCacheService(realm).size(realm);

for (int i = 0; i &lt; size; i++) {
    ContentCache cache = realmHelper.getContentCacheService(realm).get(realm, i);
    refreshContentPage(cache);
}
</code></pre>

<p>Both of them will throw an OOM when I restore it at the 2nd time.</p>

<p>How can I avoid this exception?</p>