1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +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:
Sergei Petrunia
2023-10-28 12:47:55 +03:00
parent 1cd8a5ef51
commit 86351f5eda
2 changed files with 4 additions and 6 deletions

View File

@ -24,8 +24,7 @@ select
t1.b as t1_b, t2.b as t2_b, t2.d as t2_d
FROM t1
LEFT JOIN t2 ON t1.b = t2.b;
SET @old_debug=@@debug_dbug;
SET debug_dbug='+d,analyze_print_r_unpack_ops';
SET statement debug_dbug='+d,analyze_print_r_unpack_ops' for
analyze
format=json
SELECT COUNT(*)