【问题标题】:Does Postgres have native connection pooling like mysql?Postgres 有像 mysql 这样的本机连接池吗?
【发布时间】:2012-05-07 22:32:51
【问题描述】:

我问是因为在 Rails (config/database.yml) 中您可以指定池大小。

Postgres 对此做了什么?

【问题讨论】:

    标签: ruby-on-rails postgresql rails-postgresql


    【解决方案1】:

    该池大小是针对 Rails 中内置的连接池 postgresql 不附带连接池。如果需要外部连接池 搜索 pgbouncer 或 pgpool II

    【讨论】:

      【解决方案2】:

      请记住,RoR 在事务池模式下无法与 pgpool/pgbouncer 一起正常工作 - https://github.com/rails/rails/issues/1627

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-10-05
        • 2017-10-31
        • 1970-01-01
        • 2017-04-16
        • 1970-01-01
        • 2013-08-20
        • 2011-03-23
        • 2013-06-15
        相关资源
        最近更新 更多