Hello MongoDB Community,
I’m facing a perplexing issue with one of my collections and I’m seeking your expertise to shed some light on the problem. Recently, I encountered a big document in my MongoDB collection that seems to be un-deleteable and un-updateable. Whenever I attempt to delete or update this document, it takes an extraordinarily long time with no discernible result, and to make matters worse, my server starts freezing during the process.
Here are some additional details:
- The document in question is considerably large, with a size equals to
3605802
(calculated using thebsonsize
command:bsonsize(db.col.findOne({"_id": ObjectId("645ce70b91f8446dbcbb74e4")}))
). - The document in question is considerably large, and it appears to be causing a strain on my collection’s performance.
- I have attempted various methods to remove fields from the document, including delete and update operations, but none of them seem to have any effect. The operation simply hangs indefinitely.
- As a consequence of this issue, my server experiences significant freezing, which disrupts other operations and negatively impacts the overall system performance.
Has anyone encountered a similar problem with un-deleteable and un-updateable large documents causing collection lag and server freezing, especially those exceeding 3605802
in size? I would greatly appreciate any insights, suggestions, or guidance you can provide to help resolve this issue.
Additionally, if there are any specific troubleshooting steps or best practices to address such situations, I would be grateful to know about them.
Thank you in advance for your assistance!
Best regards,
Mohammed Alhanafi