yiguolei commented on code in PR #51271:
URL: https://github.com/apache/doris/pull/51271#discussion_r2108084035


##########
be/src/olap/rowset/beta_rowset_reader.cpp:
##########
@@ -221,6 +222,38 @@ Status 
BetaRowsetReader::get_segment_iterators(RowsetReaderContext* read_context
         _read_options.io_ctx.expiration_time = 0;
     }
 
+    if (config::enable_rowset_zone_map_cache) {
+        RETURN_IF_ERROR(_rowset->load_segments_info());
+        const auto& zone_maps = _rowset->get_zone_maps();

Review Comment:
   这里传入column ids,我们按需加载;而不是一次把一个segment 所有列的zonemap 都加载起来。
   这样,比如一个表有10000列,但是过滤条件常见的就10个,我们这里就只会缓存10个column的zonemap,不至于一点不缓存。



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