title: Firebase realtime database structure in chat app
body: <p>sorry for my bad English level, I'm from Argentina.</p>
  
  <p>I have the following messages data structure in Firebase:</p>
  
  <pre><code>"messages"
     "-KezmqXSdKCNFFA432Uc___-KfCEwklG_y3naRDIUiY"
           "messageDate": "20170620"
           "messageTime": "18:44" 
           "message": "Hi"
     "-KezFDSAADFASFFS3221___-KASDF32324SDFASD1FS"
           "messageDate": "20170620"
           "messageTime": "22:23" 
           "message": "How are you?"
  </code></pre>
  
  <p>Where <strong>-KezmqXSdKCNFFA432Uc</strong>, <strong>-KfCEwklG_y3naRDIUiY</strong>, <strong>-KezFDSAADFASFFS3221</strong> and <strong>-KASDF32324SDFASD1FS</strong> are users.</p>
  
  <p>My problem is that I created a childEventListener in "messages" node to receive new users messages but I am receiving all the new messages of all the users (I'm logged in one user per app) because my childListener is in "messages" node. </p>
  
  <p>Is it correct that if I have 1000 users when adding a message, a new message reaches the 1000 users? (Assuming that within the app, you can check to which user that message belongs).</p>
  
  <p>Thanks!</p>