SAP odata模型缓存校验机制

版权声明:本文为博主汪子熙原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/90114526

gateway系统在接到Metada请求时, 首先会检查自己的 cache table看里面是否有cached的model数据:

clipboard1
clipboard2

接下来gateway会把这个从frontend端cache table里读出来的model的change timestamp和后台的timestamp做比较:

clipboard3

就是frontend这张表里的数据: /IWFND/I_MED_CTC. application第一次运行时,frontend的cache table必定是空的,第一次metadata请求完之后,从后台返回的model数据就存在这张表里。
如果后台MPC_EXT的lv_last_modified和frontend传进来的cached model的last change timestamp一致,就认为model是最新的,不用发送。

clipboard4

否则认为cache应该发送:
clipboard5

如果cache_timestamp 为空,证明frontend系统没有enable cache,这种情况下不需要发送cache model到frontend。
clipboard6

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/90114526
SAP