Document Size Limit

noun

say it: “DOK-yuh-ment SYZE LIM-it” /ˈdɑkjəmənt ˈsaɪz ˈlɪmɪt/

The largest a single MongoDB document may be: 16 megabytes.

What is MongoDB's document size limit?

The document size limit is the most one MongoDB document can hold: 16 MB. A write that would make a document bigger is refused, so a list that keeps growing belongs in its own collection, not inside one document.

In a sentence

  • “Storing every page view inside the product would one day hit the document size limit.”
  • “The document size limit is 16 MB, which is plenty for a recipe with all its steps.”

Level: Journeyman · More MongoDB terms at this level

Updated