diff --git a/docs/en/quickstart/concepts/modes.md b/docs/en/quickstart/concepts/modes.md index d27f33ab001..0a66b02b0c2 100644 --- a/docs/en/quickstart/concepts/modes.md +++ b/docs/en/quickstart/concepts/modes.md @@ -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'` diff --git a/docs/zh/deploy/conf.md b/docs/zh/deploy/conf.md index 8d1268825d4..56b3f7f3df3 100644 --- a/docs/zh/deploy/conf.md +++ b/docs/zh/deploy/conf.md @@ -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时給线程池提交一次任务的数据条数 diff --git a/docs/zh/quickstart/concepts/modes.md b/docs/zh/quickstart/concepts/modes.md index b55ef32dd71..df8beaa79c6 100644 --- a/docs/zh/quickstart/concepts/modes.md +++ b/docs/zh/quickstart/concepts/modes.md @@ -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'` diff --git a/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-1/conf/tablet.flags b/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-1/conf/tablet.flags index 0ad78be8f67..568acd398d0 100644 --- a/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-1/conf/tablet.flags +++ b/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-1/conf/tablet.flags @@ -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 diff --git a/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-2/conf/tablet.flags b/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-2/conf/tablet.flags index d7866ff32bd..51f629ff2ba 100644 --- a/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-2/conf/tablet.flags +++ b/python/openmldb_tool/tests/sbin_test/tmp/openmldb/tablet-2/conf/tablet.flags @@ -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