mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-10683: main.order_by_optimizer_innodb fails in buildbot
Fix order_by_optimizer_innodb and order_by_innodb tests. The problem was that the query could be ran before InnoDB was ready to provide a realistic statistic for #records in the table. It provided a number that was too low, which caused the optimizer to decide that range access plan wasn't advantageous and discard it.
This commit is contained in:
@ -33,6 +33,7 @@ select
|
||||
from
|
||||
t1;
|
||||
|
||||
analyze table t2 persistent for all;
|
||||
select pk1, count(*) from t2 group by pk1;
|
||||
|
||||
--echo # The following should use range(ux_pk1_fd5), two key parts (key_len=5+8=13)
|
||||
|
Reference in New Issue
Block a user