title: Is there a MongoDB maximum bson size work around?
body: <p>The document I am working on is extremely large. It collects user input from an extremely long survey (like survey monkey) and stores the answers in a mongodb database. </p>
  
  <p>I am unsurprisingly getting the following error</p>
  
  <pre><code>Error: Document exceeds maximal allowed bson size of 16777216 bytes
  </code></pre>
  
  <p>If I cannot change the fields in my document is there anything I can do? Is there some way to compress down the document, by removing white space or something like that?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Here is the structure of the document</p>
  
  <pre><code>Schema({
      id : { type: Number, required: true },
      created: { type: Date, default: Date.now },
      last_modified: { type: Date, default: Date.now },
      data : { type: Schema.Types.Mixed, required: true }
  });
  </code></pre>
  
  <p>An example of the data field:</p>
  
  <pre><code>{
      id: 65,
      question: {
          test: "some questions",
          answers: [2,5,6]
      }
      // there could be thousands of these question objects
  }
  </code></pre>