繁体   English   中英

在Oracle中使用Hikaricp缓存属性

[英]Caching properties using Hikaricp in Oracle

我需要知道什么是连接缓存属性,即使用Oracle 11g企业版和Express版,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属性。 Oracle是不同的。 尝试:

<property name="hikari.dataSource.implicitCachingEnabled">true</property>
<property name="hikari.dataSource.maxStatements">250</property>

有关详情,请参见此页面

暂无
暂无

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

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