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

CSI validation: Optimize _addIndexEntryErrors()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QE 2023-01-09, QE 2023-01-23

      ian.boros@mongodb.com observed that at https://github.com/mongodb/mongo/blob/aaddbc893195ddd4443d9e8896c0627b28bbb9ff/src/mongo/db/catalog/column_index_consistency.cpp#L121-L146 we seek against CSI twice, which can probably be avoided.

      Simplifying this to a single round of seeks would result in better performance and the code would likely be easier to follow.

            Assignee:
            colin.stolley@mongodb.com Colin Stolley
            Reporter:
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: