Use deleteMany instead of drop in index_key_expression.js

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0, 8.2.2, 8.0.16
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • v8.2, v8.0
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The test is timing out in some passthroughs. The test resets the base collection for each test scenario, but it does not need to drop the collection. It suffices to delete the documents.

      Locally, in the sharded_collections_jscore_passthrough_with_config_transitions_and_add_remove_shard passthrough, this roughly halves the test's execution time.

      248.50s user 10.97s system 248% cpu 1:44.33 total
      247.91s user 10.76s system 234% cpu 1:50.46 total
      129.74s user 5.32s system 232% cpu 58.006 total
      136.76s user 5.76s system 228% cpu 1:02.43 total 

            Assignee:
            Evan Bergeron
            Reporter:
            Evan Bergeron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: