Avoid BSON linear scans for fields in fuzzer comparison logic

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The underlying structure for result documents in the fuzzer can be BSON, which causes slow comparison times, like BF-41093. If we call `tojson` on the documents first, the internal state will change to be a hashmap, which can avoid linear scans for fields. This has improved comparison time from >30min to ~1 minute

            Assignee:
            Matt Boros
            Reporter:
            Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: