diff options
Diffstat (limited to 'src/mongo/db/query/planner_analysis.h')
-rw-r--r-- | src/mongo/db/query/planner_analysis.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/query/planner_analysis.h b/src/mongo/db/query/planner_analysis.h index 7ba6e8feeca..3233ef82d7b 100644 --- a/src/mongo/db/query/planner_analysis.h +++ b/src/mongo/db/query/planner_analysis.h @@ -147,6 +147,12 @@ public: const std::map<NamespaceString, SecondaryCollectionInfo>& collectionsInfo, bool allowDiskUse, const CollatorInterface* collator); + + /** + * Checks if the foreign collection is eligible for the hash join algorithm. We conservatively + * choose the hash join algorithm for cases when the hash table is unlikely to spill to disk. + */ + static bool isEligibleForHashJoin(const SecondaryCollectionInfo& foreignCollInfo); }; } // namespace mongo |