dbeaver / cloudbeaver

Cloud Database Manager
https://dbeaver.com/
Apache License 2.0
3.25k stars 361 forks source link

Simultaneous active queries to one server from one user session are not working #2361

Open Alkochm opened 5 months ago

Alkochm commented 5 months ago

Two or more simultaneous active queries to one server from one user session are not working

Steps to reproduce the behavior:

  1. Connect to MSSQL server
  2. Open SQL Editor and start long running query (i.e. "WAITFOR DELAY '00:01:00'")
  3. Open second SQL Editor and start short simple query (i.e. sp_who2)
  4. Second SQLquery will wait untill first query finishes with "Loading..."

image

Simultaneous queries to diferent SQL servers do work in parallel.

Chrome Version 121.0.6167.140

I see that CB opens two connections per user to SQL (Main + Metadata) and it doesn't open additional connections to execute additional simultaneous queries. Also it doesn't seem to use Multiple Active Result Sets on main connection.

It is standard practice to run long query and look who is bloking you or who is blocked by you so I don't see why it should be by design.

EvgeniaBzzz commented 5 months ago

Hi @Alkochm! You are right we do not support simultanious queries so far. It's a known issue. We are going to add the capability for simultaneous connections.

Thank you for your request!