mirror of
https://github.com/MariaDB/server.git
synced 2025-12-02 02:16:31 +01:00
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;
}
|
||
|---|---|---|
| .. | ||
| include | ||
| r | ||
| t | ||