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

Pass only number of keys in shouldMarkIndexAsMultiKey

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.3.1
    • None
    • Index Maintenance
    • None
    • Fully Compatible
    • Execution Team 2019-11-04

    Description

      In AbstractIndexAccessMethod::insert/update and a few other places, we call shouldMarkIndexAsMultikey passing a vector of keys. Because the caller only has a set, it needs to copy all keys into a vector. However, shouldMarkIndexAsMultikey really only needs to know the number of keys, so we should stop passing the vector and doing the conversion.

      Fixing this adds 3.3% to validation speed, and should speed up index operations in general.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: