title: Does observing 100 firebase paths in parallel can be non efficient?
body: <p>I have this data structure:</p>
  
  <pre><code>{
   userId: {
           userId:
  
                  {
  
                   messageId:
  
                   (...)
  
                  }
  
            (...)
  
          }
  
  (...)
  
  }
  </code></pre>
  
  <p>For a given top level <code>userId</code> I would like to observe all its <code>userId</code> child. 
  There could be 100 child path to be observed.</p>
  
  <p>Does observing 100 firebase paths in parallel can be non efficient?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>New Data Structure with proper indexing:</p>
  
  <pre><code>/messages indexed on chatIds
  
  {
  chatId: (chatId of the chat it belongs to)
  fromUserId:
  ...
  }
  
  /chat indexed on userIds
  
  {
  userId1: (users of the chat whose id are ordered alphabetically)
  
  userId2:
  
  ...
  }
  </code></pre>
  
  <p><strong>Workflow :</strong></p>
  
  <p>the app get current userId -> get the list of chat index on userId -> get messages corresponding to the chat which are indexed on chatId</p>