morningman commented on pull request #4284:
URL: https://github.com/apache/incubator-doris/pull/4284#issuecomment-681622060


   > > I mean, where is the logic for judging cache invalidation? The cache key 
(NamedKey) is only composed by connection id and origin stmt? What if the data 
has been unchanged?
   > 
   > 
https://github.com/apache/incubator-doris/blob/dd42c6b580afcbb53436dd8b531e03e5fa5d01ed/fe/fe-core/src/main/java/org/apache/doris/cache/SimpleLocalCache.java#L63
   > 
   > use Caffeine.newBuilder().recordStats();
   
   So it only depends on time? If data changed within 
`Config.result_cache_expire_after_in_milliseconds`, user in same context still 
read the old data?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to