Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
13.2
-
None
-
Related to performance
Description
Issue:
--------
With federated_pushdown OFF : Query takes 0.078sec
With ON : Query takes 8.771 sec
Query is 112 times , slower than before
Version used:
----------------
Release build
Branch : 13.2-MDEV-41243-fedx-pushdown-assert-for-upd-del-prepared-stmts
commit: e7d83013b31c4cc97a0003a0e58b707d94cba042
Version : 13.1.0
How to repeat:
----------------
Slave:
create database federated;use federated; |
source remote.sql
|
create user r1@localhost; |
grant all on *.* to r1@localhost; |
Master: Start server with federated engine enabled
create database federated;use federated; |
source federated.sql
|
set global federated_pushdown=ON; |
 |
DELETE |
FROM |
OUTR1 USING D AS OUTR1 |
RIGHT JOIN |
( B AS OUTR2 JOIN D AS OUTR3 ON ( OUTR2.pk > OUTR3.col_int_key ) ) |
ON ( OUTR1.col_int_nokey = OUTR2.col_int_key ) |
WHERE |
OUTR1.col_int_key IN ( SELECT DISTINCT INNR1.pk |
FROM CC AS INNR1 |
WHERE INNR1.col_int_nokey <= 1 OR NOT INNR1.pk > 4 |
UNION DISTINCT |
SELECT INNR1.pk |
FROM AA AS INNR1 |
GROUP BY INNR1.col_int_uniq |
HAVING COUNT(*) >= 2 |
);
|
Attachments
Issue Links
- is caused by
-
MDEV-39226 Direct multi-table update/delete interface and FederatedX implementation
-
- Closed
-