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


##########
be/src/olap/rowset/segment_v2/segment.cpp:
##########
@@ -206,7 +264,11 @@ Status Segment::_open() {
     }
 
     _meta_mem_usage += sizeof(*this);
-    _meta_mem_usage += _tablet_schema->num_columns() * 
config::estimated_mem_per_column_reader;
+    _meta_mem_usage +=
+            config::enable_segment_partial_column_cache
+                    ? config::max_segment_partial_column_cache_size *

Review Comment:
   这么计算,假如只有10列,但是配置enable_segment_partial_column_cache = 1000,就会多计算很多内存了



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