node-jdbc icon indicating copy to clipboard operation
node-jdbc copied to clipboard

node jdbc blocking the event loop till the query is done

Open theterra opened this issue 7 years ago • 4 comments

node jdbc blocking the event loop until the query is done. Help

theterra avatar Feb 14 '19 09:02 theterra

use jdb.conn.close() when response delyed or fail your request

vahidrahmani avatar Mar 04 '19 14:03 vahidrahmani

@vahidrahmani Example please? Is it possible to use async?

theterra avatar Mar 06 '19 10:03 theterra

@vahidrahmani @theterra I think that is not possible, if event loop is blocked, that simple means that call stack is not empty and thus setInterval or setTimeout wont work..

Tomas2D avatar Apr 02 '22 17:04 Tomas2D

I solved that issue by switching to https://github.com/naxmefy/node-jdbc

Tomas2D avatar Apr 02 '22 18:04 Tomas2D