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

TTL indexes can delete documents before they finish building

    XMLWordPrintableJSON

Details

    Description

      I've tested and when TTL indexes are built in the background, the TTL thread runs and can delete documents before the index is finished building.

      When they are built in the foreground, the documents aren't deleted until the index is finished building. (database global lock preventing deletes?)

      This is not clear from

      MongoDB begins removing expired documents as soon as the index finishes building.

      http://docs.mongodb.org/manual/tutorial/expire-data/

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            gregor Gregor Macadam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 5 weeks, 2 days ago