title: Partitioning records in a collection in MongoDB
body: <p>I have an usecase where a set of records in a collection need to be deleted after a specified interval of time. 
  For ex: Records older than 10hours be deleted every 10th hour.</p>
  
  <p>We have tried deletion based on id but found it to be slow. </p>
  
  <p>Is there a way to partition the records in a collection and drop a partition as and when required in Mongo</p>