spaces-X commented on code in PR #13842:
URL: https://github.com/apache/doris/pull/13842#discussion_r1018759762


##########
docs/zh-CN/docs/data-table/index/prefix-index.md:
##########
@@ -41,6 +41,23 @@ under the License.
 
 而前缀索引,即在排序的基础上,实现的一种根据给定前缀列,快速查询数据的索引方式。
 
+需要注意的是为了防止索引膨胀,**在36字节限制和varchar截断限制的基础上,增加了列数限制(默认:3列)**,默认为**前三个KEY列**参与索引的构建,如果用户期望将更多的key列纳入到前缀索引中,需要在建表时修改PROPERTIES如下:
+
+```sql
+CREATE TABLE xxx
+(
+    ...
+)
+...
+PROPERTIES(
+    "shortkey_max_column_count" = "n" -- 其中 n 为用户设定的参与前缀索引构建的列数

Review Comment:
   From the last discussion in the wechat group, the conclusion is that the 
default value of this parameter is to prevent the short index from being too 
large if so the index filtering does not work well. But the default value  is 
goot at all scenarios, so we make this parameter configurable. 
   
   The key point is that there is a difference between the description in the 
document and the implementation in the engine, which will cause confusion to 
users



-- 
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-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to