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

TTL collection background task for deleting documents every minute

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      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/

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 31 weeks, 6 days ago