-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Bug Description
First off, thank you for the great extension!
We have very large production databases, to the tune of more than ~300,000 tables per db. When trying to connect to a database that large, the connection always fail and prompts the following error:
"Error getting databases for connection x, error: Query execution was interrupted, maximum statement execution time exceeded"
I also tried connecting directly using the "Open table" command but it fails as well
Repro steps
- Add a connection to a large database (more than 300k tables)
- Click on the connection
- Watch it fail
Expected Behavior
I would expect to be able to connect to the database normally, I don't want to list the tables but I'd like to be able to run queries, open a specific table that I know the name of or to use the MCP server nonetheless.
Actual Behavior
Cannot connect in any way to these large databases
Environment
- DBCode version: 1.19.6
- VS Code (or fork) version: 1.105.1
- OS: Darwin arm64 25.0.0
- Database: MySQL
- Connection: (direct/SSH/SSL) ssh tunnel
Error Meesages (if applicable)
Error getting databases for connection x, error: Query execution was interrupted, maximum statement execution time exceeded
Logs
If available, paste relevant logs from the Output panel (View > Output > DBCode).
2025-11-27 15:09:28.809 [info] Tunnel: opened 'bastion'
2025-11-27 15:09:30.384 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:09:57.060 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:10:23.715 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:10:50.649 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:11:17.318 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:11:43.999 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:12:10.610 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:12:37.141 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:13:03.691 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:13:52.462 [info] Connection: opened 'null' on 'x' (mysql:8.0.42)
2025-11-27 15:14:48.774 [error] Connection: 'x' failed: SqlError: (conn:1943360, no: 1040, SQLState: 08004) Too many connections
at Object.C.exports.createError (/Users/raphael/.cursor/extensions/dbcode.dbcode-1.19.6-universal/out/vendor/mariadb.js:5:179)
at a.readError (/Users/raphael/.cursor/extensions/dbcode.dbcode-1.19.6-universal/out/vendor/mariadb.js:5:9902)
at a.handshakeResult (/Users/raphael/.cursor/extensions/dbcode.dbcode-1.19.6-universal/out/vendor/mariadb.js:27:31821)
at a.onPacketReceive (/Users/raphael/.cursor/extensions/dbcode.dbcode-1.19.6-universal/out/vendor/mariadb.js:27:29810)
at di.receivePacketBasic (/Users/raphael/.cursor/extensions/dbcode.dbcode-1.19.6-universal/out/vendor/mariadb.js:19:330)
at di.onData (/Users/raphael/.cursor/extensions/dbcode.dbcode-1.19.6-universal/out/vendor/mariadb.js:19:1299)
at TLSSocket.emit (node:events:519:28)
at TLSSocket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at TLSSocket.Readable.push (node:internal/streams/readable:392:5)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:189:23)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)