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

TTL expiration using _id index

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.1.2
    • None

      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.

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

              Created:
              Updated:
              Resolved: