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

Can't get time to live (TTL) collections working

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • None
    • Storage
    • None
    • OS X 64 bit

    Description

      Starting with a new database:

      > db.cstats.ensureIndex(

      { "Date": 1 }

      ,

      { expireAfterSeconds: 10 }

      )

      > db.cstats.insert(

      {"name": "test1", "Date":Date()}

      )

      > db.cstats.find()

      { "_id" : ObjectId("506f11bc9bf1fda81870da0a"), "name" : "test1", "Date" : "Fri Oct 05 2012 09:58:36 GMT-0700 (MST)" }

      This doc never gets deleted.

      Attachments

        Activity

          People

            Unassigned Unassigned
            markwatson Mark Watson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: