Mongo DB BSON Obj size: 1718558820 (0x666F2064) not valid

I got a problem where I went over the 16MB BSON size allowed and now I get this error when I try to do something on my collection. Now my question is, how do I fix and resolve the problem?

  • How do I check if this is a separate document within my collection or if the collection itself is over the limit

  • How do I delete an offensive document? I just get this error when I try to do something with this collection now.

I've already tried db.repairDatabase (), but I just get the same error: "errmsg": "Exception: BSONObj size: 1718558820 (0x666F2064) is not valid. Size must be between 0 and 16793600 (16MB). First item: ... :? type = 32 "," code ": 10334," ok ": 0

+3


source to share


1 answer


Look at the size. It's obviously not a size, it's four ASCII characters. Go and find your mistake.



-2


source







All Articles