title: Alternative to Firebase for Huge Data sets
body: <p>Our app has found great success recently.  Part of the app consists of a huge list of products.  Products that we have stored on Firebase’s Realtime Database.  However our Data set for the list we populate has now exceeded 5,000+ objects.  Which of course has put great strain on our Realtime Database, causing our loading time of these products to push 1 minute + on the initial load and 18 secs+ after caching using Firebase’s persistent data cache.  </p>
  
  <p>I’ve been reading other questions pertaining to huge data sets and utilizing Firebase and the short answer is “don’t do it”.  </p>
  
  <p>However, what wasn’t addressed, and the “pickle” we’re in is what “can” we do?  Is there somewhere else where we can host our data that will query our data exponentially faster?  </p>
  
  <p>Because of our use-case, pagination isn’t an option.  The JSON is around 12MB.   Any advice or “We ran into the same roadblock and this is what we did” would be greatly appreciated!  Thanks!</p>
  
  <p>How we query for data:</p>
  
  <pre><code>   [_reference
   observeSingleEventOfType:FIRDataEventTypeValue
   withBlock:^(FIRDataSnapshot *snapshot) {
       self.dataArray = [NSMutableArray array];
       self.postCountNew = 0;
       for (snapshot in snapshot.children) {
           [_dataArray addObject:snapshot.value];
           int timeInterval =
           [now timeIntervalSinceDate:[_dateFormatter dateFromString:snapshot.value[@"Date"]]];
           if (timeInterval &lt; 86400 &amp;&amp; timeInterval &gt;= 0 &amp;&amp; timeInterval != 0) {
               _postCountNew++;
           }
       }
       [self.tableView reloadData];
       completionBlock (YES);
   }];
  </code></pre>