From 013b4345e0abc39fcb9eb3195c157adb4b3eb83b Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Sun, 6 Aug 2023 22:23:49 +0800 Subject: [PATCH] 2 docs --- docs/en/docs/advanced/cache/partition-cache.md | 10 +++++++++- docs/en/docs/query-acceleration/nereids.md | 2 +- docs/zh-CN/docs/query-acceleration/nereids.md | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/en/docs/advanced/cache/partition-cache.md b/docs/en/docs/advanced/cache/partition-cache.md index 926d6725d2770de..ccf9675c2cca6e6 100644 --- a/docs/en/docs/advanced/cache/partition-cache.md +++ b/docs/en/docs/advanced/cache/partition-cache.md @@ -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) diff --git a/docs/en/docs/query-acceleration/nereids.md b/docs/en/docs/query-acceleration/nereids.md index 00dc8b8ed62132c..6e1724fc8c7b005 100644 --- a/docs/en/docs/query-acceleration/nereids.md +++ b/docs/en/docs/query-acceleration/nereids.md @@ -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 diff --git a/docs/zh-CN/docs/query-acceleration/nereids.md b/docs/zh-CN/docs/query-acceleration/nereids.md index 717013605c85b87..1f0489fa23b8a50 100644 --- a/docs/zh-CN/docs/query-acceleration/nereids.md +++ b/docs/zh-CN/docs/query-acceleration/nereids.md @@ -83,4 +83,4 @@ SET enable_fallback_to_original_planner=true; ### 已知问题 -- 不支持命中 Query Cache 和 Partition Cache +- 不支持命中 Partition Cache