dify-plugin-tools-dbquery icon indicating copy to clipboard operation
dify-plugin-tools-dbquery copied to clipboard

db_query 模式下会每次请求都创建一个连接池吗?

Open liujie-yt opened this issue 9 months ago • 1 comments

Please confirm before submission 在提交之前,请确认

Is this request related to a challenge you're experiencing? Tell me about your story. 这个请求与你正在经历的挑战有关吗?给我讲讲你的故事。

create_engine(self.get_url(), pool_size=100, pool_recycle=36)

每次请求都会创建一个 DBUtil 实例,每个实例都会创建 engine,对应一个连接池

会导致占用很多连接吗?

Can you help us with this feature? 你能帮我们实现这个功能吗?

  • [x] I am interested in contributing to this feature. 我有兴趣为这个特性做贡献。

liujie-yt avatar Feb 27 '26 03:02 liujie-yt

too many clients ??????

FreedomLiX avatar Jun 09 '26 06:06 FreedomLiX