title: Update mutiple rows in table using Realm in Android
body: <p>I am using <strong>Realm</strong> to store my values in local database.</p>
  
  <p>My requirement is that i need to change one field <code>status=1</code> based on some condition.</p>
  
  <p>I have tried following method to accomplish this task. And it is working fine.</p>
  
  <pre><code>   RealmResults&lt;NotificationOrder&gt; notificationOrders=realm
              .where(NotificationOrder.class)
              .equalTo(RealmConstants.TBL_NOTIFICATION_ORDER.property_id,ConstantMethod.getPreference(getActivity(),UserDefault.kPropertyId))
              .equalTo(RealmConstants.TBL_NOTIFICATION_ORDER.status,0)
              .findAll();
  
      for (NotificationOrder order:notificationOrders) {
          realm.beginTransaction();
          order.setStatus(1);
          realm.commitTransaction();
      }
  </code></pre>
  
  <p>Now there may be 1000 of such rows in my local db and using for loop to update single row doesn't seem proper way.</p>
  
  <p>So my question :<em>Is there any way like <code>MYSQL</code> Update Queries in Realm by which we can update all rows having status=0 by single statement instead of updating single row one by one ?</em></p>
  
  <p>Thanks.</p>