Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is there any semantic like table partitioning in MongoDB? My data is not that much that it would need sharding. but data is not important(but not completely useless) after several months.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you mean is there an archival type option built into MongoDB, the answer is: not yet.

You can take the manual approach, mongodump the data out, store it elsewhere and then delete it from your current data set for example. Or move the data to a different collection and ensure that the collection is as compact as possible (by running a repair for example).

At the moment though there is nothing to do this kind of operation automatically.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.