[SERVER-43313] bsonobj size is invalid because size is greater than 16mb Created: 13/Sep/19 Updated: 27/Oct/23 Resolved: 13/Sep/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | viney sharma | Assignee: | Carl Champain (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
I have a collection called Students which contain 515410 records of documents. i created a query for search and with limited dataset its working fine but with large dataset its failing and throw error (bsonobj size: is invalid. size must be between 0 and 16793600(16mb)). Document screenshot attached please have a look and below is my mongo query for search. , , , }, , , 1, 0] , 1, 0] , 1, 0] , 1, 0] }, , ] , } |
| Comments |
| Comment by viney sharma [ 14/Sep/19 ] |
|
Thanks carl It's work for me. |
| Comment by Carl Champain (Inactive) [ 13/Sep/19 ] |
|
Thanks for the report! The $push operation in "task1" is causing the error since a document size must be less than 16MB. Please take a look at the documentation here. There is no error using a small dataset because you are pushing less emails into the array, therefore the size of the document becomes less than 16MB. You need to reorganize the aggregation pipeline to avoid building an oversized document. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. Kind regards, |