Skip to content

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

@liujie-yt

Description

@liujie-yt

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? 你能帮我们实现这个功能吗?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions