I'm looking for suggestions on how to debug this one.
When one of my documents gets too large in a collection, the entire document is removed from the collection. I'm using heroku with mongoid 2.2.6 and rails 3.0.20 with MongoHQ. I'm unable to reproduce the problem locally.
We started writing this code two years ago and it's been slowly maintained by some of my students. The site is similar to a basic blogging site where a "post" will have "comments." The initial design had the post versioned and each post contains all of the comments. Because of versioning, the size of the document can grow very quickly. We tried to limit the size of the versions with max_versions 5, but we can still reproduce the problem with extremely large comments. It may be the case that the site is fully useable, but since we loose the entire document (and not just the comment), I'd like to find a solution. Had I noticed that the comments were being versioned within the document, I'd have change the design to store comments outside of the post.