Skip to content

Commit

Permalink
2 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Aug 6, 2023
1 parent 7b38c9b commit 013b434
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion docs/en/docs/advanced/cache/partition-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,15 @@ Partition fields can also be other fields, but need to ensure that only a small

## How to Use

### Enable SQL Cache
> NOTE:
>
> In the following scenarios, the cache result is wrong
> 1. Use session variable: default_order_by_limit, sql_select_limit
> 2. Use var = cur_date(), var = random() functions that generate random values
>
> There may be other cases where the cache result is wrong, so it is recommended to enable it only in controllable scenarios such as reports.
### Enable SQLCache

Make sure cache_enable_sql_mode=true in fe.conf (default is true)

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/query-acceleration/nereids.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ Recommand execute analyze on table before query on it to get the benefits of cbo

### known issues

- Cannot use query cache and partition cache to accelarate query
- Cannot use partition cache to accelarate query
2 changes: 1 addition & 1 deletion docs/zh-CN/docs/query-acceleration/nereids.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ SET enable_fallback_to_original_planner=true;

### 已知问题

- 不支持命中 Query Cache 和 Partition Cache
- 不支持命中 Partition Cache

0 comments on commit 013b434

Please sign in to comment.