How works about the ATG Cache?


ATG Cache 工作原理
 

 

Item cache 会持有repository items, Repository query 会分为两个部分,使用两个单独的SELECT 查询语句。第一个SELECT 语句 去获取匹配查询的repository id, 然后SQL Repository去检测第一个查询出来的结果集,找到在缓存中的item,然后第二个查询去取出没有被缓存的items.

 

另外,关于查询缓存我们需要注意的是,他缓存的是repository id,而不是item。 第一次会从数据库查询,第二次根据缓存的id去 item cache 取出来, 没有的依然需要去数据库查询出来。

 

相关文章:

  • 2021-09-03
  • 2021-04-04
  • 2022-01-11
  • 2022-02-24
  • 2021-07-20
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2021-08-25
  • 2021-12-01
  • 2021-04-15
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案