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

Consider allowing capped collections to have TTL indexes

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution NAMR Team 2023-06-26, Execution NAMR Team 2023-07-10, Execution NAMR Team 2023-07-24
    • 164

    Description

      MongoDB doesn't currently allow capped collections to have TTL indexes. The reason dated back to when capped collections used to not replicate explicitly and so it wasn't possible to delete from them and get consistent results. In PM-1858, we want the collections for storing sampled queries (config.sampledQueries and config.sampledQueriesDiff) to be both capped and have a TTL index. These collections currently have TTL indexes but are not capped because of the aforementioned restriction.

      Attachments

        Activity

          People

            malik.endsley@mongodb.com Malik Endsley (Inactive)
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: