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

Reduce execution time of wildcard_index_basic_index_bounds.js

    • Fully Compatible
    • 56

      The wildcard_index_basic_index_bounds.js integration test is currently taking an excessive amount of time to complete. After some local testing, the source of this excess runtime appears to be the calls to arrayEq, which asserts that two arrays of objects are equivalent regardless of document ordering; we use this to verify that the indexed results are the same as the results of an equivalent COLLSCAN.

      [jsTest] ----
      [jsTest] Total time spent in arrayEq: 1228.322s
      [jsTest] ----
      ...
      [executor] 2018-11-02T13:41:39.930+0000 Summary: All 4 test(s) passed in 1313.01 seconds.
      

      So we're spending around 93.5% of our time just comparing arrays. The test should be reworked to avoid this.

            Assignee:
            bernard.gorman@mongodb.com Bernard Gorman
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: