... 缓存对象关系映射(Caching in the ORM) 缓存结果集(Caching Resultsets) 重写 find 与 findFirst 方法(Overriding find/findFirst) ...
基于1个网页-相关网页
使用JDBC扩展包中的行集来缓存结果集;
它会动态地缓存内存中的结果集,从而减轻执行“Select”操作的查询和存储过程的负载,进而减少读取操作的反应时间以及总体上的数据库负载。
It offloads the read queries and stored procedures which perform "Select" by dynamically caching in-memory result sets, thereby reducing read response time and overall database load.
直接使用SQL会使缓存出问题,因为缓存层必须处理完整的结果集,而不是单独一个数据库行。
Directly using SQL makes caching problematic, since the caching layer must deal with full result sets rather than single database rows.
应用推荐