Allow concurrent DBX Web query execution#3164
Draft
lipaopao000 wants to merge 1 commit into
Draft
Conversation
lipaopao000
force-pushed
the
agent/web-backend-concurrent-query
branch
from
July 12, 2026 17:48
ccac569 to
8ffb5e5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change lets the Node Web backend execute SQL queries through
/api/query/executewithout first calling/api/connection/connect.Why
When
DBX_WEB_URLis set, both the CLI and MCP server use@dbx-app/node-core's Web backend. The currentexecuteQuery()path calls/api/connection/connectbefore every/api/query/execute.That pre-connect step makes concurrent CLI/MCP queries unreliable. Multiple simultaneous requests for the same connection can supersede one another during the connection attempt phase and fail with:
The Web query endpoint already accepts
connectionIdand creates or reuses a pool through the query execution path, so SQL queries do not need this UI-style connect step first.Change
ensureConnected(config)call frompackages/node-core/src/web-backend.ts./api/connection/connectis not called.Validation
Observed locally:
Reproduction Context
With
DBX_WEB_URLpointing at DBX Web, direct/api/query/executecalls can run concurrent Oracle queries successfully, but concurrent CLI/MCP queries fail before execution because they each call/api/connection/connectfirst.