title: It it better to open a global Realm object or use Realm.open everytime? Real.open vs new Realm
body: <p>In <a href="https://realm.io/docs/javascript/latest/#introduction" rel="nofollow noreferrer">Realm introduction</a> for React Native, there's no global usage of Realm. When Realm needs to be used, it's always called through <code>Realm.open()</code>.</p>
  
  <p>What is the correct way of doing it? Seems like opening a new Realm each time may be inneficient, but there's no comment on the mechanism of Realm.open. It might be cacheing things, I don't know. </p>
  
  <p>On the other side, <code>new Realm()</code> can be used and stored in a way that's accessible throughout the entire application. However, its creation is not assynchronous like <code>Real.open()</code> and I've run through some delay problems on using this technique (it can be made assynchronous too, though)</p>
  
  <p>I'm trying to do it globally. I'm making the initial query to show in  list view right at the <code>componentWillMount()</code>. It takes some time for the list view to initially appear and fr some reason it only displays some objects and then takes some seconds to display the rest.</p>
  
  <p>I'm doing as seen in <a href="https://stackoverflow.com/questions/48668497/realm-open-vs-new-realm">Realm.open vs new Realm</a> on the link <a href="https://github.com/realm/realm-js/blob/master/examples/ReactExample/components/realm.js" rel="nofollow noreferrer">https://github.com/realm/realm-js/blob/master/examples/ReactExample/components/realm.js</a></p>