You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "xinyiZzz (via GitHub)" <gi...@apache.org> on 2023/05/16 14:19:12 UTC
[GitHub] [doris] xinyiZzz commented on a diff in pull request #19622: [enhence](memory) gc inverted index cache when there is not enough memory
xinyiZzz commented on code in PR #19622:
URL: https://github.com/apache/doris/pull/19622#discussion_r1195242186
##########
be/src/olap/rowset/segment_v2/inverted_index_cache.cpp:
##########
@@ -179,6 +179,19 @@ Status InvertedIndexSearcherCache::erase(const std::string& index_file_path) {
return Status::OK();
}
+void InvertedIndexSearcherCache::prune() {
+ if (_cache) {
+ _cache->prune();
Review Comment:
`prune()` will free the entire cache, expecting it to be like `segment cache`,
During minor gc, prune_if evict the cache value with last_visit_time > N min
During full gc, prune evict entire cache
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org