go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Setting sql connection pool

Open huuhoait opened this issue 1 year ago • 5 comments

How can i set the max,min db connection

huuhoait avatar Aug 07 '22 13:08 huuhoait

Any scenario to set it?

kevwan avatar Aug 14 '22 05:08 kevwan

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.

huuhoait avatar Aug 14 '22 14:08 huuhoait

Why to set these parameters? Got any connection problem?

kevwan avatar Aug 18 '22 00:08 kevwan

yes, there are some issue with timeout & lock record in db and handle connection

huuhoait avatar Aug 25 '22 12:08 huuhoait

I think you might use https://github.com/kevwan/tproxy to check if any connection problem.

Or please describe more on your specific scenarios.

kevwan avatar Aug 25 '22 14:08 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 26 '23 01:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 18 '24 01:03 github-actions[bot]