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

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: Backlog
    • Component/s: Performance
    • Labels:
    • Sprint:
      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
    • Case:

      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

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

                Dates

                Created:
                Updated: