From ecd5ee4b5728172d2be99d13e5df77d3403435d7 Mon Sep 17 00:00:00 2001 From: qw4990 Date: Wed, 30 Aug 2023 18:10:48 +0800 Subject: [PATCH] fixup --- sql-non-prepared-plan-cache.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql-non-prepared-plan-cache.md b/sql-non-prepared-plan-cache.md index a2f9666ab935a..93079887370de 100644 --- a/sql-non-prepared-plan-cache.md +++ b/sql-non-prepared-plan-cache.md @@ -95,7 +95,9 @@ After you enable this feature, the optimizer quickly evaluates the query. If it ## Performance benefits -In internal tests, enabling the non-prepared plan cache feature can achieve significant performance benefits in most TP scenarios. However, it also introduces some additional performance overhead, including determining whether the query is supported and parameterizing the query. If this feature cannot support the majority of queries in your workload, enabling it might actually adversely affect performance. +In internal tests, enabling the non-prepared plan cache feature can achieve significant performance benefits in most TP scenarios. For TPCC, it can bring aroung 4% improvements; For some banking workloads, it can bring 10+% improvements; For Sysbench RangeScan, it can bring 15% improvements. + +However, it also introduces some additional memory and CPU overhead, including determining whether the query is supported, parameterizing the query and look up a plan in the Cache. If this feature cannot support the majority of queries in your workload, enabling it might actually adversely affect performance. In this case, you need to observe the `non-prepared` metric in the **Queries Using Plan Cache OPS** panel and the `non-prepared-unsupported` metric in the **Plan Cache Miss OPS** panel on Grafana. If most queries are not supported and only a few can hit the plan cache, you can disable this feature.