Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-322

TTL collection background task for deleting documents every minute

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      Per some enthusiastic investigation on SERVER-6304 and a closer reading of SERVER-211, I discovered that the documents in a TTL collection are deleted by a background task that runs once a minute.

      This needs to be added/highlighted in the documentation as expireAfterSeconds won't be strictly honoured if less than 60 seconds:
      http://docs.mongodb.org/manual/tutorial/expire-data/

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 44 weeks, 5 days ago