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

Modernize jstests/core/index_elemmatch1.js and reduce size of data set

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.1.5
    • Fix Version/s: 4.1.6
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Linked BF Score:
      12

      Description

      If updating we should:

      • modernize test structure, variable declaration and naming
      • remove dead code (nscannedForCursor() function)
      • wrap database statements with assert.commandWorked
      • reduce the size of the data set (from 10K docs to 100)
      • remove print statements
      • remove tests that do not actually test find with $elemMatch with an index in place
         

        Attachments

          Activity

            People

            Assignee:
            james.wahlin James Wahlin
            Reporter:
            james.wahlin James Wahlin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: