-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Connection pooling #1
Comments
Regards this issue there are interesting updates in upcoming go 1.2 release, which touch connection pools: http://www.honnef.co/go-tip/2013-09-07/#sql |
With help from @crosbymichael I have added connection pools using a similar technique to RedisGo. I will revisit connection pools with the Go 1.2 release and see if there are significant improvements. @robert-zaremba what do you mean about following the |
@cespare said:
I meant that it's a good idea to use the same names as in
|
Ah ok, I agree I will look into making these changes later today. |
Ok I have added the SetMaxIdleConns and SetMaxOpenConns methods so I am now closing this issue. |
It makes sense to implement this in the driver, rather than forcing each user to implement it themselves.
We should learn from database/sql and make the pool size configurable from the start.
The text was updated successfully, but these errors were encountered: