在 Oracle 中使用 Hikaricp 缓存属性
Caching properties using Hikaricp in Oracle
我需要知道什么是连接缓存属性,我使用的是 Oracle 11g 企业版和快捷版、Hibernate 和 HikariCP。
我将这些属性放在 hibernate.cfg 中,但出现异常:
<property name="hikari.dataSource.cachePrepStmts">true</property>
<property name="hikari.dataSource.prepStmtCacheSize">250</property>
<property name="hikari.dataSource.prepStmtCacheSqlLimit">2048</property>
<property name="hikari.dataSource.useServerPrepStmts">true</property>
这些属性是 MySQL 个属性;甲骨文是不同的。尝试:
<property name="hikari.dataSource.implicitCachingEnabled">true</property>
<property name="hikari.dataSource.maxStatements">250</property>
详情见this page。
我需要知道什么是连接缓存属性,我使用的是 Oracle 11g 企业版和快捷版、Hibernate 和 HikariCP。
我将这些属性放在 hibernate.cfg 中,但出现异常:
<property name="hikari.dataSource.cachePrepStmts">true</property>
<property name="hikari.dataSource.prepStmtCacheSize">250</property>
<property name="hikari.dataSource.prepStmtCacheSqlLimit">2048</property>
<property name="hikari.dataSource.useServerPrepStmts">true</property>
这些属性是 MySQL 个属性;甲骨文是不同的。尝试:
<property name="hikari.dataSource.implicitCachingEnabled">true</property>
<property name="hikari.dataSource.maxStatements">250</property>
详情见this page。