Tag: pgpool

连接池使用pg-promise

我使用Node js和Postgresql,并试图在连接实现中最有效率。 我看到pg-promisebuild立在node-postgres之上,node-postgres使用pg-pool来pipe理共享池。 我还读到,“一次有100多个客户是非常糟糕的”( node-postgres )。 我正在使用pg-promise并想知道: 对于非常大的数据负载,推荐的poolSize是多less? 如果poolSize = 100并且应用程序同时获得101请求(甚至更多),会发生什么情况? Postgres是否处理这个命令并且使得这个请求等到它可以运行?