TangSiyang2001 commented on issue #18047:
URL: https://github.com/apache/doris/issues/18047#issuecomment-1486070408

   > The release logic here is reasonable, as release is usually called in 
conjunction with insert or lookup:
   > 
   >     1. `lookup + release` will not increase the cache usage.
   > 
   >     2. ` insert + release`, if `_usage + current_item_total_size > 
_capacity` during the insert, there will trigger the eviction of infrequently 
used items. If no existing items are evicted during the insert, it means that 
all items in the current cache are hot. In this case, it is reasonable to throw 
away the item to be inserted during release, to prevent the cache usage from 
increasing infinitely in the case of all hot data.
   
   Thank u for clearing up my confusion!


-- 
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.

To unsubscribe, e-mail: [email protected]

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