[MDEV-5698] Using ORDER BY in a FederatedX table is abnormally slow Created: 2014-02-18 Updated: 2014-02-21 Resolved: 2014-02-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.35 |
| Fix Version/s: | 5.5.36 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jean Weisbuch | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | federatedx | ||
| Environment: |
Debian Wheezy AMD64 |
||
| Description |
|
Querying a FederatedX table with an ORDER BY clause will take about 20 to 40 times longer with MariaDB (tested on 5.5.35) than with MySQL (tested on 5.5.22 and 5.5.30), no matter if the "host" table is hosted on a MariaDB (tested with 5.5.31 and 5.5.35) or MySQL (tested with 5.5.22 and 5.5.27) server. I did tests with servers on the same physical network and over the Internet, results are similar in both cases. Steps to reproduce :
If both servers are on the same physical network, both queries should take about the same time, in less than a second. On my test environement, the unsorted SELECT of the whole table takes about 0.3sec on both MariaDB and MySQL "clients" while the sorted query is taking about 8.5seconds on MariaDB while it does only takes about 0.3sec on MySQL. While the query is running, its state is "Sorting result". ps: replacing "SELECT id" by "SELECT 1" will make the query as fast as on MySQL. |
| Comments |
| Comment by Elena Stepanova [ 2014-02-20 ] |
|
The problem is specific for FederatedX. Federated (in the same MariaDB version) works all right. |