oracle - SQL 支持缓存并回退到数据库

标签 oracle caching in-memory-database timesten sqlfire

有没有什么产品可以使用JDBC(普通SQL)进行查询,它会查看查询中的所有表是否都在CACHED表中,并使用缓存,否则回退到后端数据库。

我知道两种产品:Oracle 内存数据库 (IMDB) 缓存和 VMware SQLFire。

我对它们都不熟悉,所以我想知道是否可以在非缓存表上查询 IMDB 缓存,以便它回退到底层数据库?

还有其他产品支持此功能吗?

最佳答案

在 11g 中,您可以使用 JDBC OCI Client Result Cache :

Client result cache feature enables client-side caching of SQL query result sets in client memory. In this way, OCI applications can use client memory to take advantage of the client result cache to improve response times of repetitive queries.

请注意 CACHE子句的含义并不像其名称所暗示的那样:

For data that is accessed frequently, this clause indicates that the blocks retrieved for this table are placed at the most recently used end of the least recently used (LRU) list in the buffer cache when a full table scan is performed. This attribute is useful for small lookup tables.

关于oracle - SQL 支持缓存并回退到数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8662527/

相关文章:

ios:内存数据存储

java - 通过 OJDBC 批量插入 Oracle 数据库的性能

android - ListView 中的 ImageViews 不显示

java - 在 Oracle 中处理 ¿

java - 如何清除 Android WebView 的(CSS)访问历史记录?

php - 为访问者开发后清除缓存

java - 如何为 Hive JDBC 编写 Junit 测试用例

dictionary - 在 Hazelcast 中创建另一个 map 函数?

Oracle:如何在 TO_DATE 转换中指定字 rune 字?

oracle - 如何强制 flyway 清理我的 docker oracle 数据库?