Skip to content

【功能请求】支持共享数据库连接池 #775

Open

Description

@WangJincheng4869

Is your feature request related to a problem? Please describe.
在多租户场景下,连接同一个数据库实例,多个库时。每个库目前都是一个连接池,当租户过多的时候会撑爆数据库的连接数。

Describe the solution you'd like
希望在这种场景下可以共用一个连接池,防止出现连接数无限扩张。

Describe alternatives you've considered
目前线上处理方案是,每个连接池限制最多 2 个连接。但是 150 个租户,连接数也会到 300

Activity

  1. github-actions commented on Nov 11, 2026

    @github-actions

    这条 issue 已 60 天没有新活动,将在 14 天后自动关闭。
    若问题仍然存在,请回复补充版本号与最小复现;若已解决,欢迎告知我们关闭。
    This issue has been inactive for 60 days and will be closed in 14 days unless there is new activity.

  2. huayanYu commented on Nov 11, 2026

    @huayanYu
    Member

    核心的问题是方案不通用。上下文切换也很容易产生问题。 得思考一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions