SERVER-132796In Code Review

Extend the classic $lookup LRU result cache (SERVER-127901) to cover $lookup stages that have absorbed a $unwind

SERVER-127901 added a per-localField-value LRU result cache to classic {{$lookup}} for pure {{localField/foreignField}} equijoins ({{{}LookupResultCache{}}} in {{{}lookup_result_cache.h/.cpp{}}}). The cache is unconditionally disabled ({{{}LookupResultCache::createDisabled(){}}}) whenever {{_hasAbsorbedUnwindSrc}} is true — see the guard and TODO in {{{}LookUpStage{}}}'s constructor and {{makeResultCache()}} in {{{}src/mongo/db/exec/agg/lookup_stage.cpp{}}}.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.