title: MongoDB large array or documents
body: <p>We are trying to save profile views.</p>
  <p>We created a schema something like that</p>
  <pre class="lang-js prettyprint-override"><code>{
    user: userId,
    viewers: []
  }
  </code></pre>
  <p>We think the viewers array could have millions of items</p>
  <p>So would it make more sense to do it this way?</p>
  <pre class="lang-js prettyprint-override"><code>{
    user: userId,
    viewer: viewerId
  },
  {
    user: userId,
    viewer: viewerId
  },
  {
    user: userId,
    viewer: viewerId
  }
  </code></pre>
  <p>In this way this collection could have millions of documents</p>
  <p>What is the best way to handling this</p>