MongoDB Out of Memory Crash – Collections Show Document Count but No Documents
I’m running MongoDB (v7.0.12) locally on windows 11, and after leaving my system idle for a few hours, I came back to find out that the mongod server had stopped. Upon restarting the server, I noticed that some collections, which previously had documents, now has none. What is even more confusing is that MongoDB Compass shows the correct document count (e.g., 11.9k documents), even after restarting the app and disconnecting then reconnecting to the mongod server, but the documents themselves are missing (queries return no results and MongoDB compass shows empty collections).