[MDEV-15066] Slow ST_INTERSECTS queries comparted to MySQL 5.7 Created: 2018-01-25 Updated: 2022-08-04 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | GIS |
| Affects Version/s: | 10.2.11, 10.2.12, 10.3.4 |
| Fix Version/s: | 10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Zdeněk Mžourek (Inactive) | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | performance | ||
| Environment: |
Debian Linux 9.3, virtual machine in Xen 4.8 |
||
| Attachments: |
|
| Description |
|
We are using a lot of ST_INTERSECTS queries in our application and after migration from mysql (version 5.7) to maria (10.2) we've noticed notable performance hit using these queries. Here is an example query running with and without a spatial index (take a look at table defintion in attachements - there is also a complete dataset for testing).
This are the same queries ran on mysql.
As you can see using the spatial index on maria did not have an effect on query speed, however, using the index on mysql had a very positive performace impact. We've also tested it using fresh installation of both mariadb and mysql getting same results. Can you take a look at this issue? It is quite severe for us as we are thinking about going back to mysql. Both mysql and maria are using same configuration (see attachments). |
| Comments |
| Comment by Elena Stepanova [ 2018-01-26 ] |
|
Thanks for the report and test case. |