SERVER-135128ClosedFixed

Change SBE to check roaring bitmap before inserting

SBE access the roaring bitmap differently from classic. This likely adds a small penalty to SBE when doing multikey index scans. https://github.com/10gen/mongo/blob/75a8697971f1081e769517ed33d825b74961d4e3/src/mongo/db/exec/sbe/stages/unique.cpp#L225-L276 https://github.com/10gen/mongo/blob/75a8697971f1081e769517ed33d825b74961d4e3/src/mongo/db/exec/classic/recordid_deduplicator.cpp#L48-L61

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue
Query Execution
Labels
Tags and classification
neweng