title: Create And Update on a table a bulk of Objects
body: <p>Right now I'm trying to create and on another function update at least 4000 objects with different info.
  But every time I do this my js thread completely freezes for a few seconds.</p>
  
  <p>What I'm looking for is if there is an optimized way to achieve this.</p>
  
  <p>Example Code:</p>
  
  <pre><code>realm.write(() =&gt; {
        var userInfo = realm.objects('usersInfo');
  
        response.message.map((obj2) =&gt; { //4000 positions 
  
              var foundUser = userInfo.filtered('id_server == ' + obj2.id_server);
  
              obj2.id = (foundUser.length) &amp;&amp; foundUser[0].id || false;
  
              if (!obj2.id) {
                    obj2.id = (userInfo.length) &amp;&amp; userInfo[(userInfo.length - 1)].id + 1 || 1;
              }
  
              realm.create('usersInfo', obj2, true);  //This  code puts my JS Thread from 50 FPS to -2.
        })
  })
  </code></pre>
  
  <p>Realm: 2.2.6</p>
  
  <p>React-Native: 0.44.1</p>