-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azdata-LanguageService is causing huge delays in query execution #9170
Comments
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like: |
Oh, it seems that I've already submitted the same issue a year ago... |
@romanovmv thanks for providing the profiling details. The language service queries should be executed asynchronously with the SQL Script queries. We'll double-check to make sure there isn't some unexpected blocking between these two components. |
Had to roll back to the ADS version from February 2018, that one works much faster... |
Looks like this may be the same problem #7440 |
My team and I have been suffering from these problems since March, when we started telecommuting. At that point we started to connect through the VPN and the situation has gotten quite complicated at some point. When we go to the office and we are within the corporate network, we have no problems or are mitigated by the low latency of the network. We have reviewed the VPN outages and it is totally stable, the pings are within normal metrics. My whole team is working on Ubuntu machines, but other Windows machines using SQL Manager do not suffer from these problems in the same situations. I need to know what information could be contributed to the thread to be able to advance this topic (logs, traces, configurations, ...). I believe that quite a few of us are affected and that together we can eradicate this problem that affects us all. |
Same here, we can confirm that the performance is extremely bad when latency between client and server goes above 100ms. It is particularly slow(though it's so slow already) when your query yields an error result, typically takes more than a minute to return. |
Maybe related with #22970 ? |
Wonderful, I've been using the insiders version 1.45.0 all day today and the improvement detected is impressive, I'll keep testing |
I have been using the stable version 1.44.1 and the Bug has been fixed, wonderful |
Thanks for confirming! |
Hi @cheenamalhotra , |
Hi @romanovmv The queries being executed are not changed, they continue to execute as such. However, previously ADS was creating a new connection for every query, which caused significant lag, and now we've enabled connection pooling. But I do see some lag here even with this improvement, which as you mentioned relates with the amount of queries executed, and is ~20 seconds on an Azure SQL DB. I'm attaching logs here for investigation: |
This issue has been fixed in the latest insiders build and fix will be included in the upcoming release. |
I'm connecting to my SQL Server located in the UK from Australia (ping around 300ms). When I'm running any query (even very simple one) I sometimes need to wait for up to a minute to see the result.
Steps:
Hit Run
Messages window is emty (no "Started executing..." message yet). But I can see "Executing query" in the footer)
In SQL Server profiler I can see the following queries from azdata-LanguageService app:
or
and others
It seems to me that Intellisense is just getting the list of all DB object it can find in my query editor and fetches for metadata. And because the server is far it's actually a gap of 2 seconds between the calls.
The text was updated successfully, but these errors were encountered: