Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
None
-
ALL
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)).
Please help me to understand and let me know how can i handle this error.
Document screenshot attached please have a look and below is my mongo query for search.
student
.aggregate([
,
{
$facet: {
task1: [
{
$group:
,
count:
,
overallScholarshipGrantedCount:{
$sum:
},
scholarshipsGrantCount: {
$sum: {
$cond: [
{
$gte: [
,
1
]
},
//{ $in: [ "$scholarshipHistory.ReceivedScholarships", [] ] }
1,
0
]
}
},
profileCompletedCount: {
$sum:
, 1, 0]
}
},
statusApprovedCount: {
$sum:
, 1, 0]
}
},
statusPendingCount: {
$sum:
, 1, 0]
}
},
statusRejectCount: {
$sum:
, 1, 0]
}
}
}
}
],
task2: [
{
$sort:
},
,
]
}
},
,
{
$project:
}
])
.exec();