Yuchen Pei
c5154d8587
MDEV-36055 [wip] Add a check of join table counts before heuristic pruning
...
If we completely disable heuristic pruning, the test
main.greedy_optimizer will grind to almost hanging when the following
iterates to i > 20:
let $query= SELECT COUNT(*) FROM t1 AS x;
let $i= 1;
while ($i < 61)
{
let $query= $query JOIN t$i ON t$i.I=x.I;
inc $i;
select @@optimizer_prune_level;
select @@optimizer_search_depth;
eval EXPLAIN $query;
}
2025-07-28 16:33:02 +10:00
..
2025-04-27 19:40:00 +02:00
2025-05-09 07:36:15 +02:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-04-29 13:53:16 +10:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-04-02 14:07:01 +03:00
2025-07-16 09:14:33 +07:00
2025-06-18 07:50:39 +02:00
2025-04-02 14:07:01 +03:00
2025-04-29 13:53:16 +10:00
2025-07-22 10:44:12 +10:00
2025-07-16 09:14:33 +07:00
2025-07-28 16:33:02 +10:00
2025-07-28 16:33:02 +10:00
2025-07-16 09:14:33 +07:00
2025-04-29 13:53:16 +10:00
2025-04-29 13:53:16 +10:00
2025-05-22 09:22:55 +02:00
2025-07-28 16:33:02 +10:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-04-29 11:00:37 -06:00
2025-04-29 13:53:16 +10:00
2025-07-16 09:14:33 +07:00
2025-04-29 16:53:02 +02:00
2025-04-29 13:53:16 +10:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-06-18 07:50:39 +02:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-07-16 09:14:33 +07:00
2025-05-05 12:02:47 +07:00
2025-07-22 10:44:12 +10:00
2025-07-28 16:33:02 +10:00
2025-04-29 13:53:16 +10:00