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

truncate command to provide removal of all documents without removal of metadata

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • 1.6.2
    • None
    • Performance
    • Storage NYC 2018-07-16, Storage NYC 2018-07-30, Storage NYC 2018-08-13, Storage NYC 2018-08-27, Storage NYC 2018-09-10, Storage NYC 2018-09-24, Storage NYC 2018-10-08

    Description

      Our environment requires possibility to remove all documents from collection without reseting indexing and sharding settings.

      This is because we use staggered collections to manage throw away data which is inserted at thousands of documents per second.

      Using normal remove is very slow when you have millions of documents (we were clocking about 50k documents per second on collection with 150M documents) and you are getting inserts to the collection at the same time.

      Drop is fast but requires setting up sharding , shardkeys and indexing everytime collection is dropped. removeAll() would be same as drop but would retain indexes and other metadata.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-execution Backlog - Storage Execution Team
              jalava Jalmari Raippalinna
              Votes:
              4 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: