In MongoDB you can convert a collection into a capped collection with the command convertToCapped
, but is there a way to revert this change so a capped collection goes back to normal?
相关问题
- MongoDB can not create unique sparse index (duplic
- Spring Data MongoDB - lazy access to some fields
- Golang mongodb aggregation
- How to convert from Timestamp to Mongo ObjectID
- MongoDB Indexing: Multiple single-field vs single
相关文章
- mongodb有没有什么办法禁止读取数据的时候进行缓存
- mongodb-aggregate聚合查询分组后如何获得多字段
- mongodb error: how do I make sure that your journa
- How to track MongoDB requests from a console appli
- MongoError: cannot infer query fields to set, path
- Pymongo $in Query Not Working
- django.core.exceptions.ImproperlyConfigured: '
- How does Cassandra scale horizontally ?
I think there is a way! I'm not sure if this is bullet-proof, but I tried:
and since then it is working.
same as above without using script.
It's seems there is only one way to convert from capped collection to normal - just simple copy objects to normal collection and remove original capped collection.