Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure DocumentDB provides high compatibility with MongoDB wire protocol behaviors while optimizing for scalability, performance, and availability. This article describes the supported maximum document size, nesting depth, and batch write limits.
Document size limits
The maximum Binary JavaScript Object Notation (BSON) document size supported in Azure DocumentDB is 16 MB per document.
| Property | Value |
|---|---|
| Maximum document size | 16 MB |
Nesting depth
Unlike traditional MongoDB implementations that enforce a strict nesting depth limit, Azure DocumentDB doesn't impose a fixed maximum nesting depth. However, deeply nested document structures might:
- Affect query and read performance
- Increase document processing overhead
- Reduce maintainability
Batch write and bulk operation limits
Azure DocumentDB supports batch write and bulk operations.
Note
A batch refers to a single request to the server.
| Limit type | Supported value |
|---|---|
| Maximum writes per batch operation | 25,000 writes |
| Behavior when exceeding 25,000 writes in a batch | The batch operation fails |
| Number of total batch operations | No limit |