TTL expiration using _id index

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.1.2
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Kevin Matulef (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: