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
Freezes when trying to run large SQL script #907
Comments
Which driver? By large do you mean one that returns a lot of rows? Or that selects a small number of records from a large table? |
I basically had a script that created table and populated it with many lines of values using a lot of lines of "INSERT INTO". The SQL file was 1.9 MB so it's a lot of queries. When I ran chunks of the script at a time instead of the whole thing at once, it worked. I attached the SQL script below as a txt file. |
This is not an issue with SQL Tools, you're going to run into this same issue no matter which SQL client you use. There is no strict limit in postgres for how large the query can be but its a lot of parsing to do and there are a few workarounds or alternatives.
|
Same issue when I just open any large(25000+ lines) .sql file in VSCode editor.
VSCode doesn't freeze but all actions like global searching, git features, etc. just don't finish. As if they are waiting for some action to be finished. Making it unusable till restart. Closing and opening the folder/vscode fixes it until I open the large file again. Using SQLTools with MySQL driver on Intel Mac. |
@gjsjohnmurray Not exactly. I don't need to format it. Just opening a large |
@Anutrix please open a new issue for your problem. This one is about running a large SQL script. If possible please attach a .sql that demonstrates the problem to your new issue. Make sure it doesn't contain any confidential data. |
Bug
sqltools
0.23.0
Darwin x64 20.6.0
1.67.2
The text was updated successfully, but these errors were encountered: