Bug #67064 | SQL Query Execution from Batch files is now really slow, since 5.5.24 and new. | ||
---|---|---|---|
Submitted: | 3 Oct 2012 3:36 | Modified: | 13 Feb 2018 22:39 |
Reporter: | MELERIX ... | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S5 (Performance) |
Version: | since 5.5.24 and new versions | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Slow SQL Query Execution |
[3 Oct 2012 3:36]
MELERIX ...
[3 Oct 2012 12:53]
MySQL Verification Team
Thank you for the bug report. Verified on Windows 7 64-bits 8GB RAM.
[4 Oct 2012 5:22]
MySQL Verification Team
Both scripts ran in a couple of seconds on 5.5.23 and 5.5.28 on my machine. So, no real difference for me. Does adding "skip-name-resolve" help ? Can you run a test on 5.5.28 using options to mysqld server, then upload the slow query log for us to check if any particular query is slow ? --skip-name-resolve --long-query-time=0 --slow-query-log ?
[4 Oct 2012 5:25]
MySQL Verification Team
if you think ipv6 could be a problem, please test it as so. start server with --bind-address=127.0.0.1 and tell installation to use 127.0.0.1 . does it make any difference?
[4 Oct 2012 6:00]
MELERIX ...
@Shane Bester if I enable "skip-name-resolve" or "--bind-address=127.0.0.1", then I can't connect anymore to MySQL server, it throw the following error: "1130 - Host '127.0.0.1' is not allowed to connect to this MySQL server"
[4 Oct 2012 6:06]
MELERIX ...
adding "--bind-address=127.0.0.1" doesn't change anything, SQL queries from batch files are still slow.
[4 Oct 2012 6:09]
MySQL Verification Team
does this connection test run in same speed on both servers ?
Attachment: test_connection.bat (application/octet-stream, text), 46.83 KiB.
[4 Oct 2012 6:40]
MELERIX ...
with your "test_connection.bat" there is not noticeable difference , is 1 or 2 seconds, due is just basic SQL query. you should try to test with the batch file script from the links I've reported, and only then you will notice the big difference.
[4 Oct 2012 6:51]
MySQL Verification Team
I did run the installer batch file. it ran in same time on both 5.5.23 and 5.5.28 (some seconds). We need to analyze what exactly took longer and why. I assume you had identical my.ini on both instances, and clean datadir to start with... Can you pinpoint which queries takes longer? We need a simple set of sql queries that when executed will take longer on newer version.
[4 Oct 2012 7:01]
MELERIX ...
in my test the following SQL queries are affected: import/update/delete/optimize, a table. the difference is really big. is not hard to test, you just need to download and check with the batch scripts I've reported above.
[7 Oct 2012 8:55]
MELERIX ...
alter table queries are affected too.
[12 Oct 2012 15:33]
MySQL Verification Team
This looks related: http://bugs.mysql.com/bug.php?id=35918
[13 Feb 2018 22:39]
Roy Lyseng
Posted by developer: Closing as "Could not reproduce" since this has been idle for a long time. Please reopen if problem persists.