-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow more than 1 connection in the connection pool #28
Comments
Hi @espenhogbakk, |
Thanks for the response. So am I correct in thinking the only way to reliably use this driver now is to do this for every query? driver.connect()
driver.query()
driver.close() Unless of course you in the same "context" are doing multiple queries in series (and don't want to do them in parallell). E.g in our Node.js application we might get a bunch of requests in at the same time, handled in different contexts/processes and then without a connection pool we need to establish a new connection to the cluster, query and close it down? Seems like there is quite a bit overhead of doing so, see this log output
That is 902ms before we receive any data. I must be missing something as this surely isn't how it's supposed to be? |
I am not very familiar with the code, but I don't think there is another way, unless you implement a connection pool in your application :-( |
Investigated, found a couple of logical issues with the current implementation, had a chat with the PM yesterday. We should decide on a proper course of action today. Plan a meeting with chipi and tobe to discuss |
It seems like this driver only supports 1 connection in a connection pool. I can see there are some tests and code related to multiple connections in a pool. but when initializing the driver, it uses a hardcoded value of 1 when it creates the pool.
Is there any particular reason we can't use a large pool size?
The text was updated successfully, but these errors were encountered: