Support documents larger than 16KB
Today DocumentDb only supports documents up to 16KB. If you try to store a larger document you will get an exception.
We have entities larger than this which we need to store and having to split up these entities into several documents and have some kind of master-document referencing them would be cumbersome.
I think supporting JSON entities at least 1MB or something like that would be reasonable.
As of December 2016, DocumentDB has increased the document size quota to 2mb:
Tom Tucker commented
I believe the max size for a Document (including Sub documents) is now 256KB
A document and its sub documents are all stored as one JSON object (that can be max 256KB).
Note that If you have an attachment on a document that it can still only be 256KB including the attachment.
1) Does anyone know if this limit includes child documents (sub-documents)?
2) The link provided by Han Wong does not actually mention document size limits.
3) The site mentions something called "pages". What are pages? I can't find them anywhere in the documentation.
Ian Burt commented
Any idea what the expectede new size will be ?
We are planning a major roll out and this is a decision critical point,
Maybe align with the 64 kb limit in dynamoDB http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
Tom Tucker commented
If you are trying to have say an Order and its items all as one document 16KB is too small. The nested query & joins features of DocumentDB make this a tempting option however the 16KB limit means you can only have orders with < 32 or so items in them. Separating The order from its items is Ok but not as elegant but not currently desirable due to lack of patching/updating of sub documents.
what would be a reasonable size limit? 16MB is not reasonable and anyone with 16MB of data in a single document should honestly reconsider how they are modelling their data.
Jon Gallant commented
Mongo is 16MB. Please make this configurable.
Yes! 1MB should be enough, 16 KB is enough for most cases, but splitting documents in case where it not fit 16KB is not a way.