Kikyou1997 commented on code in PR #19205:
URL: https://github.com/apache/doris/pull/19205#discussion_r1186649242


##########
fe/fe-common/src/main/java/org/apache/doris/common/Config.java:
##########
@@ -1919,5 +1919,20 @@ public class Config extends ConfigBase {
 
     @ConfField(mutable = true)
     public static boolean disable_datev1  = true;
+
+    /**
+     * The actual memory size taken by stats cache highly depends on 
characteristics of data, since on the different
+     * dataset and scenarios the max/min literal's average size and buckets 
count of histogram would be highly
+     * different. Besides, JVM version etc. also has influence on it, though 
not much as data itself.
+     * Here I would give the mem size taken by stats cache with 10_0000 
items.Each item's avg length of max/min literal
+     * is 32, and the avg column name length is 16, and each column has a 
histogram with 128 buckets
+     * In this case, stats cache takes total 911.954833984MiB mem.
+     * If without histogram, stats cache takes total 61.2777404785MiB mem.
+     * It's strongly discourage analyzing a column with a very large STRING 
value in the column, since it would cause
+     * FE OOM.
+     */
+    @ConfField
+    public static long stats_cache_size = 10_0000;

Review Comment:
   Once the cache size is determined it can't be changed during the FE process 
lifetime



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