Repository navigation
db: connection pool - #24161
db: connection pool#24161
Conversation
|
Connected to Huly®: V_0.6-22550 |
Delta456
left a comment
There was a problem hiding this comment.
Is there a way to have a common ConnectionPool implementation across all DBs?
Yes. Just pass the DB and Config as generic. I'll do that. |
|
Let's do that in this PR itself |
|
I'm going to my English class now, possibly I'll only be able to do it when I leave class |
|
I think we should implement a connection pool for MySQL, PostgreSQL, and SQLite, just like the go language's database/sql. |
|
At least achieve it.
|
|
I think you can create the db / pool module directly within the db module for a more general database connection pool |
|
How did it shut down? is it going to continue? I'm looking forward to it. |
@Avey777 Alex is interested in it. unfortunately, I will not have enough time to work in it. But this is ready to merge. It will probably be merged as soon as possible. |
|
Minimum number of connections guarantees the fastest response rate for new requests coming in! You can also set it to 0. |
|
The database / pool of go language is worth a reference |
Thread-safe database pool