Skip to content

Commit

Permalink
Merge pull request #223 from wbtiger/main
Browse files Browse the repository at this point in the history
fix docs error on preload
  • Loading branch information
wbtiger authored Apr 26, 2024
2 parents 9f0c76b + b09840b commit e1c8c41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Preloading involves fetching data from remote storage and storing it in the loca
1. Set the table-level `parts_preload_level` to a value greater than 0 (defaults to 0 if not set). This can be updated using the following DDL command:

```sql
ALTER TABLE [db.]table_name MODIFY SETTINGS parts_preload_level = {level};
ALTER TABLE [db.]table_name MODIFY SETTING parts_preload_level = {level};
```

Where `{level}` has the following meanings:
Expand All @@ -35,7 +35,7 @@ Preloading involves fetching data from remote storage and storing it in the loca
2. Ensure the table-level `enable_local_disk_cache` is set to 1 (defaults to 1 if not set). This can be updated using the following DDL command:

```sql
ALTER TABLE [db.]table_name MODIFY SETTINGS enable_local_disk_cache = 1;
ALTER TABLE [db.]table_name MODIFY SETTING enable_local_disk_cache = 1;
```

3. Set the system-level `parts_preload_level` in the `user.xml` configuration file to a value greater than 0 (defaults to 1).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tags:
1. 表设置 `parts_preload_level` 应大于 0 (若未设置,默认为 0)。可以通过以下 DDL 命令更新此设置:

```sql
ALTER TABLE [db.]table_name MODIFY SETTINGS parts_preload_level = {level};
ALTER TABLE [db.]table_name MODIFY SETTING parts_preload_level = {level};
```

其中,`parts_preload_level` 的值含义如下:
Expand All @@ -35,7 +35,7 @@ tags:
2. 表设置 `enable_local_disk_cache` 应设置为 1(若未设置,默认为 1)。可通过以下 DDL 命令进行更新:

```sql
ALTER TABLE [db.]table_name MODIFY SETTINGS enable_local_disk_cache = 1;
ALTER TABLE [db.]table_name MODIFY SETTING enable_local_disk_cache = 1;
```

3. 系统配置 `user.xml` 内的 `parts_preload_level` 应大于 0(默认为 1)
Expand Down

0 comments on commit e1c8c41

Please sign in to comment.