From 4c9ffd210df4b1720b2c186c4f4e602177258696 Mon Sep 17 00:00:00 2001 From: ZhenchaoXu <49646212+ixzc@users.noreply.github.com> Date: Tue, 26 Sep 2023 00:25:39 +0800 Subject: [PATCH] [typo][doc]modify incorrect argument type. (#24095) --- docs/en/docs/admin-manual/multi-tenant.md | 4 ++-- docs/zh-CN/docs/admin-manual/multi-tenant.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/docs/admin-manual/multi-tenant.md b/docs/en/docs/admin-manual/multi-tenant.md index 41663a1e4f..6a8e1566ae 100644 --- a/docs/en/docs/admin-manual/multi-tenant.md +++ b/docs/en/docs/admin-manual/multi-tenant.md @@ -163,8 +163,8 @@ At present, Doris's resource restrictions on single queries are mainly divided i set exec_mem_limit=1G; # Set the global variable exec_mem_limit. Then all subsequent queries of all new sessions (new connections) use this memory limit. set global exec_mem_limit=1G; - # Set the variable exec_mem_limit in SQL. Then the variable only affects this SQL. - select /*+ SET_VAR(exec_mem_limit=1G) */ id, name from tbl where xxx; + # Set the variable exec_mem_limit in SQL(Unit bytes). Then the variable only affects this SQL. + select /*+ SET_VAR(exec_mem_limit=1073741824) */ id, name from tbl where xxx; ``` Because Doris' query engine is based on the full-memory MPP query framework. Therefore, when the memory usage of a query exceeds the limit, the query will be terminated. Therefore, when a query cannot run under a reasonable memory limit, we need to solve it through some SQL optimization methods or cluster expansion. diff --git a/docs/zh-CN/docs/admin-manual/multi-tenant.md b/docs/zh-CN/docs/admin-manual/multi-tenant.md index acc1775c0a..afc2488cd7 100644 --- a/docs/zh-CN/docs/admin-manual/multi-tenant.md +++ b/docs/zh-CN/docs/admin-manual/multi-tenant.md @@ -163,8 +163,8 @@ FE 不参与用户数据的处理计算等工作,因此是一个资源消耗 set exec_mem_limit=1G; # 设置全局变量 exec_mem_limit。则之后所有新会话(新连接)的所有查询都使用这个内存限制。 set global exec_mem_limit=1G; - # 在 SQL 中设置变量 exec_mem_limit。则该变量仅影响这个 SQL。 - select /*+ SET_VAR(exec_mem_limit=1G) */ id, name from tbl where xxx; + # 在 SQL 中设置变量 exec_mem_limit(单位:字节)。则该变量仅影响这个 SQL。 + select /*+ SET_VAR(exec_mem_limit=1073741824) */ id, name from tbl where xxx; ``` 因为 Doris 的查询引擎是基于全内存的 MPP 查询框架。因此当一个查询的内存使用超过限制后,查询会被终止。因此,当一个查询无法在合理的内存限制下运行时,我们就需要通过一些 SQL 优化手段,或者集群扩容的方式来解决了。