How to Remove capped Attribute from MongoDB Collection

  mongodb, question

In MongoDB database (Version 2.6), I found some wrong values in several document in the collection. If I want to use update to modify manually, I will find that there will be errors as shown in the following figure.
图片描述

After looking at the relevant documents, we found that the reason is that the collection has the capped attribute, which results in that when only the documents in the collection can be update, the deletion can only be made on the basis of the original maximum number of bytes and cannot be added. I don’t know if you have encountered similar problems, and if you have any way to convert the capped set back to the normal set.

Thank you, bosses ~

cannot
However, you can export the data, recreate the common set with the same name, and then import the data.