title: Storing RLMResults instead of re-fetching
body: <p>I've just started using Realm for Objective-C, I've used Realm for Swift before and I can't remember having any problems with it.</p>
  
  <p>I want to store the fetched objects and convert them to RLMObjects/NSMutableArrays and have them as ViewController's properties, so I won't have to fetch them again using predicates and descriptors and getting them through a loop to distinct them, because there are lots of data to fetch.</p>
  
  <pre><code>RLMResults *results = [Sales allObjects];
  NSMutableArray&lt;NSString *&gt; resultsIDs* = [[NSMutableArray alloc] init];
  NSMutableArray&lt;Sales *&gt; *uniqueSales = [[NSMutableArray alloc] init];
  for (Sales *sale in results) {
      NSString *id = sale.id;
      if (![resultsIDs id]) {
          [resultsIDs id];
          [uniqueSales addObject:sale];
      }
  }
  
  self.distinctProducts = uniqueSales;
  </code></pre>
  
  <p>I know RLMObjects are not thread-safe but since I add different data to different object models concurrently (and only once when the app launches), keeping a reference to the threads does not seem to be a good idea to me.</p>