Nuri Tasdemir
Nuri Tasdemir

Reputation: 9842

What does "Maximum request size of document and attachment" mean in Azure DocumentDB limitations?

We are planning to use Azure DocumentDB. Therefore I am checking its limitations. On page DocumentDB Limits, it says that "Maximum request size of document and attachment: 512KB". What does it mean?

Upvotes: 2

Views: 2541

Answers (2)

David Makogon
David Makogon

Reputation: 71055

Documents have size limits. As you build your collection's documents, you are limited to a certain size per document per document. If you create a document larger than the maximum size, and attempt to store it in your collection, you'll receive an error.

This limit has nothing to do with maximum number of documents stored within a collection, or with the number of collections you create.

EDIT 4/2017 The per-document limit is no longer 512K. I believe it is 2MB now.

Upvotes: 2

Howard Edidin
Howard Edidin

Reputation: 63

You might want to consider using BISON (Binary JSON). It is supported in json.net.

There is also base85

Another possible solution is to split your documents. Create a master document, with an array of child document id's

Just store the attachment data in the child documents.

Upvotes: 0

Related Questions