Closed chulucninh09 closed 7 months ago
Hi @ravjotbrar, can you comment on this PR and make this progress
Apologies for the late response @chulucninh09. I will try to get to this tomorrow.
Hi @ravjotbrar, can I get approval on this or any comment for this PR?
Summary
The cursor implementation was using
while True
loop to poll for result from REST API of Dremio. Without throttling, it will jam the server easily, especially when using a high number of thread count. Since most SQL jobs need a few second to run, looping too fast to get the result is unessesary.Also, in REST client implementation, using
get
,post
,delete
directly fromrequests
is inefficient because it will create new HTTP session with the server everytime the polling is called.Description
request.Session
instead of vanilarequests
to utilize connection pooling, so optimize networking performancetime.sleep
inwhile True
loop to slow down the pollingChangelog