title: Storing messages in new conversation collections; MongoDB
body: <p>I'm a student working on a chat application for my internship, where I use <code>socket.io</code>.</p>
  <p>Right now I am busy thinking of a good way to store the messages send in conversations.</p>
  <p>As of now I do the following:</p>
  <ul>
  <li>For each conversation between one user and another user, a new collection is made.</li>
  <li>On every message sent, the message is stored in the according conversation collection in a single document.</li>
  </ul>
  <p>The collections:</p>
  <p><a href="https://i.stack.imgur.com/sTkZF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sTkZF.png" alt="MongoDb collections" /></a></p>
  <p>Where the document looks as follows:</p>
  <p><a href="https://i.stack.imgur.com/eavyX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eavyX.png" alt="document looks like this" /></a></p>
  <p>Now I wonder if there is a good argument to be made to have just one collection &quot;conversations&quot;, and store all the messages in multiple documents, where each conversation is a new document.</p>