mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-34888 Implement SEMIJOIN() and SUBQUERY() hints
This commit is contained in:
@@ -117,6 +117,7 @@ public:
|
||||
bound
|
||||
5. But some of the IN-equalities aren't (so this can't be handled by
|
||||
FirstMatch strategy)
|
||||
6. LooseScan strategy is enabled for this SJ nest
|
||||
*/
|
||||
best_loose_scan_cost= DBL_MAX;
|
||||
if (!join->emb_sjm_nest && s->emb_sj_nest && // (1)
|
||||
@@ -127,7 +128,8 @@ public:
|
||||
!(remaining_tables &
|
||||
s->emb_sj_nest->nested_join->sj_corr_tables) && // (4)
|
||||
remaining_tables & s->emb_sj_nest->nested_join->sj_depends_on &&// (5)
|
||||
optimizer_flag(join->thd, OPTIMIZER_SWITCH_LOOSE_SCAN))
|
||||
(s->emb_sj_nest->nested_join->sj_enabled_strategies & // (6)
|
||||
OPTIMIZER_SWITCH_LOOSE_SCAN))
|
||||
{
|
||||
/* This table is an LooseScan scan candidate */
|
||||
bound_sj_equalities= get_bound_sj_equalities(s->emb_sj_nest,
|
||||
|
Reference in New Issue
Block a user