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
..
2024-10-29 17:46:40 +03:00
2024-07-11 10:21:07 +04:00
2023-02-03 11:57:50 +03:00
2024-07-11 10:21:07 +04:00
2024-05-27 12:39:02 +02:00
2024-05-27 12:39:02 +02:00
2025-02-06 16:46:36 +01:00
2024-07-11 10:21:07 +04:00
2024-05-27 12:39:02 +02:00
2024-11-08 07:17:00 +01:00
2023-07-20 18:22:31 +03:00
2024-10-19 22:48:23 +02:00
2025-07-08 12:30:27 +03:00
2024-05-27 12:39:02 +02:00
2025-06-23 20:38:36 +02:00
2024-05-27 12:39:02 +02:00
2025-07-16 09:14:33 +07:00
2025-02-06 16:46:36 +01:00
2024-07-11 10:21:07 +04:00
2024-07-11 10:21:07 +04:00
2024-08-05 17:50:18 +02:00
2025-06-18 07:50:39 +02:00
2025-01-14 18:56:13 +03:00
2024-07-11 10:21:07 +04:00
2024-11-08 07:17:00 +01:00
2024-07-11 10:21:07 +04:00
2024-11-08 07:17:00 +01:00
2025-01-09 07:58:08 +02:00
2023-02-03 11:57:50 +03:00
2025-07-28 16:33:02 +10:00
2022-08-10 15:03:22 +02:00
2024-07-11 10:21:07 +04:00
2022-05-06 15:11:02 +03:00
2023-08-09 07:53:48 +02:00
2025-04-18 09:41:24 +02:00