mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-32351: Significant slowdown with outer joins: fix embedded.
For some reason, in embedded server, a command let $a=`$query` ignores local context. Make a workaround: use SET STATEMENT to set debug_dbug in the same statement.
This commit is contained in:
@ -24,8 +24,7 @@ select
|
|||||||
t1.b as t1_b, t2.b as t2_b, t2.d as t2_d
|
t1.b as t1_b, t2.b as t2_b, t2.d as t2_d
|
||||||
FROM t1
|
FROM t1
|
||||||
LEFT JOIN t2 ON t1.b = t2.b;
|
LEFT JOIN t2 ON t1.b = t2.b;
|
||||||
SET @old_debug=@@debug_dbug;
|
SET statement debug_dbug='+d,analyze_print_r_unpack_ops' for
|
||||||
SET debug_dbug='+d,analyze_print_r_unpack_ops';
|
|
||||||
analyze
|
analyze
|
||||||
format=json
|
format=json
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
|
@ -20,10 +20,9 @@ select
|
|||||||
FROM t1
|
FROM t1
|
||||||
LEFT JOIN t2 ON t1.b = t2.b;
|
LEFT JOIN t2 ON t1.b = t2.b;
|
||||||
|
|
||||||
SET @old_debug=@@debug_dbug;
|
let $q=
|
||||||
SET debug_dbug='+d,analyze_print_r_unpack_ops';
|
SET statement debug_dbug='+d,analyze_print_r_unpack_ops' for
|
||||||
|
analyze
|
||||||
let $q= analyze
|
|
||||||
format=json
|
format=json
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM t1_t2
|
FROM t1_t2
|
||||||
|
Reference in New Issue
Block a user