Bug #111738 Query taking very long the first time it runs
Submitted: 13 Jul 2023 3:31 Modified: 21 Jul 2023 12:22
Reporter: Madhav Jaligama Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any

[13 Jul 2023 3:31] Madhav Jaligama
Description:
Hi,

When I connect to Mysql for the first time, and execute the query (even the basic query example select @@version), it is taking more than 30 minutes or so to produce the output. Once the first successful execution is completed, the subsequents executions are much faster.

We are using VPN to establish the database connectivity.
Then connecting to mysql workbench.
execting select @@Version
to produce results it takes more than 30 minutes.
Subsequent sql's are executing much fast.

Thanks
Madhav

How to repeat:
Hi,

When I connect to Mysql for the first time, and execute the query (even the basic query example select @@version), it is taking more than 30 minutes or so to produce the output. Once the first successful execution is completed, the subsequents executions are much faster.

We are using VPN to establish the database connectivity.
Then connecting to mysql workbench.
execting select @@Version
to produce results it takes more than 30 minutes.
Subsequent sql's are executing much fast.

Thanks
Madhav
[13 Jul 2023 3:32] Madhav Jaligama
Hi,

When I connect to Mysql for the first time, and execute the query (even the basic query example select @@version), it is taking more than 30 minutes or so to produce the output. Once the first successful execution is completed, the subsequents executions are much faster.

We are using VPN to establish the database connectivity.
Then connecting to mysql workbench.
execting select @@Version
to produce results it takes more than 30 minutes.
Subsequent sql's are executing much fast.

Thanks
Madhav
[13 Jul 2023 11:50] MySQL Verification Team
Hello Madhav,

Thank you for the bug report.
To investigate further this issue at our end, may I kindly request you to launch workbench under debug mode (--log-level=debug3) and provide unaltered workbench log file(more details about log are explained here - https://dev.mysql.com/doc/workbench/en/workbench-reporting-bugs.html)? Thanks.

Regards,
Ashwini Patil
[18 Jul 2023 11:25] Madhav Jaligama
Hi,

I tried to open the link, but it throws No Page Found.

Kindly advice.

Thanks
Madhav
[18 Jul 2023 12:04] MySQL Verification Team
Hello Madhav,

Which link did you try? Please share the screenshot. 

Regards,
Ashwini Patil
[18 Jul 2023 13:00] Madhav Jaligama
Hi Ashwani,

I received the email which you shared. It says page not found.
https://urldefense.com/v3/__https://dev.mysql.com/doc/workbench/en/workbench-reporting-bug...

Iam trying to connect mysqlworkbench client to mysqlserver which is mounted on linux, for the first time it takes time to connect and execute 1st query.

Also i tried -log-level=debug3 it just opens query to execute and kindly throw more information as how to check too.

Thanks
Madhav
[19 Jul 2023 12:35] MySQL Verification Team
Kindly go through https://dev.mysql.com/doc/workbench/en/workbench-reporting-bugs.html and provide unaltered workbench log file. Thanks.
[20 Jul 2023 12:05] Madhav Jaligama
Hi,

I attached the log file.

The problem is, it took 30 minutes to execute the query for the first time.

Thanks
[20 Jul 2023 12:38] MySQL Verification Team
Hello Madhav,

I could not find the log file. Kindly use "Files" tab to attach any files.
Imho this is duplicate of Bug #96949, please see Bug #96949 and follow the suggested workaround. Thanks.

Regards,
Ashwini Patil
[21 Jul 2023 12:22] Madhav Jaligama
Hi,

I have gone through the tread. There is no where solution provided. More over many people raised concern about this issue. MySQL team instead of providing solution marked as duplicate issue. You are refering to the thread releated to this issue but I am not pleased with the solution.

[23 Aug 2022 18:53] Jim Haberlin
I am having the same issue with the first query taking a long time before running.  It does not appear to be related to history as I am on a newer laptop with limited history and the issue still occurs after using "Delete All Logs".
I am only seeing this issue with MySQL Workbench (version 8.0.27 build 1228725 CE 64 bit).  I have a similar connection with Toad and there is no delay in running the query.
[30 Nov 2022 1:46] Scott H
I have this as well where the first query after opening a connection takes minutes and then subsequent queries start executing immediately.  There is a blue spinning circle icon on the file tab from where I'm executing the query, but the "Stop the query being executed" button is not active.  So it seems it's not the query itself that is running but something else with the program. I'm also on a fresh install of MySQL Workbench after uninstalling an older version.

MySQL Workbench on Windows 10 Prod build 2235049 CE (64 bits)
[20 Jul 12:39] MySQL Verification Team
Bug #111738 marked as duplicate of this one.

Thanks
Madhav