title: how would I do a mass update in Realm Android?
body: <p>I am currently doing the following but I don't think it's the efficient way of doing it:</p>
  
  <pre><code>Realm defaultInstance = Realm.getDefaultInstance();
  RealmResults&lt;Stamp&gt; stamps = defaultInstance.where(Stamp.class).equalTo("exerciseGuid", exerciseGuid).findAll();
  if (stamps.size() &gt; 0) {
      defaultInstance.beginTransaction();
      for (int i = 0; i &lt; stamps.size(); i++) {
          Stamp stamp = stamps.get(i);
          stamp.setSynced(false);
          stamp.setName(newName);
      }
      defaultInstance.commitTransaction();
  }
  </code></pre>