Alex Rivera | Logout

"uncap" a capped MongoDB collection

Asked 2012-01-11T08:09:38.000
10

is there a way to "uncap" a capped collection? Creating a new collection and copy the data isn't an option for me.

thanks

Edit
Report

1 Answer

9

No, You can convert a non-capped collection to a capped collection using the "convertToCapped" command but there's no way to go the other way.

Your only option is to clone the collection to a non capped one and rename it which obviously involves downtime.

answered 2012-01-11T12:34:32.080

Your Answer