go-zero
go-zero copied to clipboard
Setting sql connection pool
How can i set the max,min db connection
Any scenario to set it?
I built monolithic model, but i can not set the max pool (the default is 64), and must edit file sqlx/sqlmanager. How can i init the connection pool Max/Min in generate project.
Why to set these parameters? Got any connection problem?
yes, there are some issue with timeout & lock record in db and handle connection
I think you might use https://github.com/kevwan/tproxy to check if any connection problem.
Or please describe more on your specific scenarios.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.