Bug #96269 | st_intersects mysql 8 does not use index | ||
---|---|---|---|
Submitted: | 22 Jul 2019 13:10 | Modified: | 25 Jul 2019 13:30 |
Reporter: | Pavel Dvořák | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S2 (Serious) |
Version: | 8.0.16 | OS: | Debian (9) |
Assigned to: | CPU Architecture: | x86 (x64) |
[22 Jul 2019 13:10]
Pavel Dvořák
[22 Jul 2019 13:13]
Pavel Dvořák
SELECT lb.* FROM `gps`.`land_block` lb WHERE st_within( ST_GeomFromText('POINT (50.181978 14.591256)', 4326) , lb.polygon ) Query took 0.0036 seconds
[22 Jul 2019 13:24]
Pavel Dvořák
file is uploaded
[22 Jul 2019 14:40]
Pavel Dvořák
I guess my coordinates are wrong, investigating
[23 Jul 2019 13:11]
MySQL Verification Team
Hi Mr. Dvorak, Beside checking your coordinates, couple of other comments. If EXPLAIN shows that spatial key is used, then there is no problem. Also, if you confirm that this behavior persists, we need all the data from that table.
[24 Jul 2019 9:42]
Pavel Dvořák
i fixed the coordinates but the query was still slow it shown in EXPLAIN but not used anyway I uploaded the ibd file. Can you see it?
[24 Jul 2019 12:13]
MySQL Verification Team
Hi Mr. Dvorak, No, we do not see it. Have you used "Files" tab ??? If not, how have you uploaded it ??? If you have used our SFTP site, then we need the name of the file !!!
[24 Jul 2019 12:42]
MySQL Verification Team
Hi, One more, very important detail. Beside .ibd file, we also require the corresponding .cfg file. You simply have to follow the export / import procedure that is explained in our Reference Manual. Many thanks in advance.
[24 Jul 2019 13:13]
Pavel Dvořák
I did the export again, with cfg file. Here's the file: https://ulozto.net/!TuWkj83pz6QR/mysql-bug-data-96269-tar-gz
[24 Jul 2019 13:17]
Pavel Dvořák
Also I overwrote the old file on ftp mysql-bug-data-96269.tar.gz
[24 Jul 2019 13:18]
Pavel Dvořák
it was not possible so mysql-bug-data-96269-2.tar.gz
[25 Jul 2019 12:54]
MySQL Verification Team
Hi Mr. Dvorak, We have managed to repeat the behaviour that you described. However, we have discovered that there is already one verified bug, which makes this bug a duplicate. The original bug is: https://bugs.mysql.com/bug.php?id=96311 You can not see its contents, since it is private. Thank you.
[25 Jul 2019 13:10]
Pavel Dvořák
i can see it it was submitted after my bug will this be fixed? I can't use the database because of it thanks
[25 Jul 2019 13:13]
MySQL Verification Team
Hi, I can only tell you that the bug is verified and forwarded to our Development team. We do not have access to the scheduling of the bug fixing.
[25 Jul 2019 13:30]
Pavel Dvořák
OK can you increase the severity? A query that took 100 ms now takes 500 s So it's definitely critical thanks
[25 Jul 2019 15:12]
MySQL Verification Team
Done .....