Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6701

TTL expiration using _id index

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.1.2
    • None

    Description

      Since the default ObjectIds contain a timestamp, it would be nice if the _id index could also be used as a TTL index. Ideally the user would just attach an

      {expireAfterSeconds : x}

      option to their existing _id index, and the TTL monitor would be smart enough to delete old documents based on the timestamp embedded in the ObjectIds.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matulef Kevin Matulef
            Votes:
            6 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: