简体   繁体   English

C3P0 max语句配置?

[英]C3P0 max statements configuration?

I am using C3P0. 我正在使用C3P0。 i have below configuration. 我有以下配置。 i need to cache the statements. 我需要缓存语句。

maxPoolSize="20" 
minPoolSize="6" 
acquireIncrement="3"
initialPoolSize="3"
maxStatements="2000" 

here i have set maxStatements to 2000 . 这里我将maxStatements设置为2000 maxPoolSize is 20 . maxPoolSize20 does it mean total 2000*20=40000 statements wil be cached? 是否意味着要缓存总计2000 * 20 = 40000个语句?

Thanks! 谢谢!

no maxStatements is the global cache max size. no maxStatements是全局缓存最大大小。

maxStatementsPerConnection is the per connection value. maxStatementsPerConnection是每个连接值。

Relevant section the c3p0 docs 相关部分是c3p0文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM