mirror of
https://github.com/MariaDB/server.git
synced 2025-08-23 03:54:27 +03:00
merge
This commit is contained in:
@@ -64,9 +64,11 @@ INSERT INTO t1 VALUES (1000000, 0, 0);
|
||||
|
||||
SET SESSION sort_buffer_size = 1024*36;
|
||||
|
||||
# We have to use FORCE INDEX here as Innodb gives inconsistent estimates
|
||||
# which causes different query plans.
|
||||
EXPLAIN
|
||||
SELECT COUNT(*) FROM
|
||||
(SELECT * FROM t1
|
||||
(SELECT * FROM t1 FORCE INDEX(primary,idx)
|
||||
WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
|
||||
SELECT COUNT(*) FROM
|
||||
(SELECT * FROM t1
|
||||
|
Reference in New Issue
Block a user