Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Jan 16, 2024
1 parent 4902ca0 commit 2c59cc0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/en/quickstart/concepts/modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The main features of the online preview mode are:
- Online preview mode is mainly used for previewing limited data. Selecting and viewing data directly through SELECT in OpenMLDB CLI or SDKs may result in data truncation. If the data volume is large, it is recommended to use an [export tool](../../tutorial/data_export.html) to view the complete data.
- SELECT statements in online preview mode currently do not support more complex queries such as `LAST JOIN` and `ORDER BY`. Refer to [SELECT](../../openmldb_sql/dql/SELECT_STATEMENT.html).
- The server in the online preview mode executes SQL statements on a single thread. For large data processing, it may be slow and may trigger a timeout. To increase the timeout period, the `--request_timeout` can be configured on the client.
- To prevent impact on online services, online preview mode limits the maximum number of accessed records and the number of different keys. This can be configured using `--max_traverse_cnt` and `--max_traverse_key_cnt`. Similarly, the maximum result size can be set using `--scan_max_bytes_size`. For detailed configuration, refer to the [configuration file](../../deploy/conf.md).
- To prevent impact on online services, you can limit the maximum number of accessed records and the number of different keys in online preview mode. This can be configured using `--max_traverse_cnt` and `--max_traverse_key_cnt`. Similarly, the maximum result size can be set using `--scan_max_bytes_size`. For detailed configuration, refer to the [configuration file](../../deploy/conf.md).

The command for setting online preview mode in OpenMLDB CLI: `SET @@execute_mode='online'`

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/deploy/conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
# 最大扫描不同key的个数(批处理),默认:0
#--max_traverse_key_cnt=0
# 结果最大大小(byte),默认:0 unlimited
#--scan_max_bytes_size=2097152
#--scan_max_bytes_size=0
# loadtable
# load时給线程池提交一次任务的数据条数
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/quickstart/concepts/modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ OpenMLDB CLI 启动以后的**默认模式为离线模式**。离线数据导入
- 在线预览模式主要用于有限数据的预览,在 OpenMLDB CLI 或者 SDKs 执行 SELECT 直接查看数据可能出现数据截断;如果数据量较大,建议使用[导出工具](https://openmldb.ai/docs/zh/main/tutorial/data_export.html)查看完整数据。
- 在线预览模式的 SELECT 语句目前不支持 `LAST JOIN``ORDER BY` 等较复杂的查询,参考 [`SELECT`](https://openmldb.ai/docs/zh/main/openmldb_sql/dql/SELECT_STATEMENT.html)
- 在线预览模式服务端均为单线程执行 SQL,对于大数据处理,会比较慢,有可能会触发超时,可以通过在客户端配置 `--request_timeout` 来提高超时时间。
- 为了防止影响线上服务,在线预览模式控制了最大访问的条数和不同key的个数,可以通过`--max_traverse_cnt``--max_traverse_key_cnt` 来设置;
- 为了防止影响线上服务,可以在在线预览模式中控制最大访问的条数和不同key的个数,可以通过`--max_traverse_cnt``--max_traverse_key_cnt` 来设置;
同时,通过 `--scan_max_bytes_size` 来限制结果的大小。详细配置可参考[配置文件](../../deploy/conf.md)

在线预览模式设置命令 (OpenMLDB CLI):`SET @@execute_mode='online'`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
#--key_entry_max_height=8

# query conf
# max table traverse iteration(full table scan/aggregation),default: 50000
#--max_traverse_cnt=50000
# max table traverse pk number(batch query), default: 5000
#--max_traverse_pk_cnt=5000
# max result size in byte (default: 2MB)
#--scan_max_bytes_size=2097152
# max table traverse iteration(full table scan/aggregation),default: 0
#--max_traverse_cnt=0
# max table traverse pk number(batch query), default: 0
#--max_traverse_pk_cnt=0
# max result size in byte (default: 0 ulimited)
#--scan_max_bytes_size=0

# loadtable
#--load_table_batch=30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
#--key_entry_max_height=8

# query conf
# max table traverse iteration(full table scan/aggregation),default: 50000
#--max_traverse_cnt=50000
# max table traverse pk number(batch query), default: 5000
#--max_traverse_pk_cnt=5000
# max result size in byte (default: 2MB)
#--scan_max_bytes_size=2097152
# max table traverse iteration(full table scan/aggregation),default: 0
#--max_traverse_cnt=0
# max table traverse pk number(batch query), default: 0
#--max_traverse_pk_cnt=0
# max result size in byte (default: 0 ulimited)
#--scan_max_bytes_size=0

# loadtable
#--load_table_batch=30
Expand Down

0 comments on commit 2c59cc0

Please sign in to comment.