Commit Graph

53 Commits

Author SHA1 Message Date
b8e282b1fd planner: plan cache supports Batch/PointGet converted from (primary keys) in ((...), ...) (#44838)
close pingcap/tidb#44830
2023-06-25 03:28:14 +00:00
14c41aa27a planner: fix Jepsen fail caused by non-prep plan cache (#43856)
close pingcap/tidb#43667
2023-05-16 08:35:18 +00:00
5f92a50a66 *: fix incorrect handling of EXECUTE stmt in plan replayer capture (#43662)
close pingcap/tidb#43620
2023-05-10 13:46:07 +00:00
7dd8ef6330 planner: performance optimization for plan-cache (#43183)
ref pingcap/tidb#36598
2023-04-19 15:51:19 +08:00
b1e6fe72f3 planner: non-prep and prep statements use the same unified plan cache (#43094)
ref pingcap/tidb#36598
2023-04-17 22:51:26 +08:00
86f215d8f5 planner: plan cache can be aware of statistics changes (#42921)
ref pingcap/tidb#36598
2023-04-11 19:35:00 +08:00
566c3f6f8e planner: refactor PreparedParams for non-prep plan cache (#42844)
ref pingcap/tidb#36598
2023-04-06 21:32:58 +08:00
7442a66e4b planner: fix incompatibility issues between plan-cache and expr-blacklist (#42606)
ref pingcap/tidb#36598
2023-03-27 22:00:54 +08:00
2d28d42afe planner: add more test cases for non-prep plan cache (#42412)
ref pingcap/tidb#36598
2023-03-21 15:45:06 +08:00
df92b9ff43 planner: make tidb_enable_plan_cache_for_subquery can take effective immediately (#41612)
ref pingcap/tidb#40219
2023-03-17 18:34:41 +08:00
71ce68c723 planner: fix plan cache rebuild range error (#42220)
close pingcap/tidb#42150
2023-03-17 17:38:48 +08:00
39e955b8a2 planner: add test cases for non-prep plan cache (#41872)
ref pingcap/tidb#36598
2023-03-14 19:16:47 +08:00
e925e5276a planner: add more test cases for non-prep plan cache (#42015)
ref pingcap/tidb#36598
2023-03-08 19:37:28 +08:00
18f1ecdfcd planner: add monitor for non-prepared plan cache (#41752)
ref pingcap/tidb#36598
2023-03-07 19:41:12 +08:00
723526708d metrics: attach const label keyspace_id (#41693)
close pingcap/tidb#41698
2023-03-04 00:03:10 +08:00
11ae573c2e planner: check rebuilt ranges more strictly for plan cache (#41713)
ref pingcap/tidb#36598
2023-02-24 17:09:07 +08:00
96580f0f46 planner: add more test cases for non-prep cache (#41669)
ref pingcap/tidb#36598
2023-02-23 16:23:08 +08:00
12107e33d3 planner: refactor plan cache LRU code (#41618)
ref pingcap/tidb#40219
2023-02-22 13:27:06 +08:00
71ed2674c5 planner: small refactor about plan cache checker (#41357)
ref pingcap/tidb#36598
2023-02-14 13:02:01 +08:00
71b7dc0cd3 planner: skip plan cache if the plan contains Shuffle operators (#41185)
close pingcap/tidb#38335
2023-02-09 18:06:31 +08:00
fd5e67581b planner: add a switch control if prepare stmt with param limit can be cached (#40712)
ref pingcap/tidb#40219
2023-01-30 12:01:54 +08:00
05e20162a4 Revert "planner: show un-cacheable reasons for execute statements" (#40680)
ref pingcap/tidb#36598
2023-01-18 11:31:50 +08:00
a879ba2d5b planner: show un-cacheable reasons for execute statements (#40651)
ref pingcap/tidb#36598
2023-01-17 17:29:49 +08:00
45e85d9bd4 planner: disable plan-cache for plans with IndexMerge accessing Multi-Valued Index (#40646)
ref pingcap/tidb#40191
2023-01-17 15:17:48 +08:00
bdc6f4b541 planner: refactor to put all plan-cacheability-check functions together (#40625)
ref pingcap/tidb#36598
2023-01-17 13:29:49 +08:00
17df596863 planner: prepared plan cache support cached plan with placeholder in limit clause (#40196)
ref pingcap/tidb#40219
2023-01-17 12:51:49 +08:00
7fafb6db45 planner: better coordination between the ignore_plan_cache() binding and plan-cache (#40280)
close pingcap/tidb#40225
2023-01-04 12:52:19 +08:00
5327d07afc planner: refactor plan-cache UseCache flag (#40256)
ref pingcap/tidb#36598
2023-01-03 17:30:20 +08:00
ffaf2ac9ee planner: remove the unnecessary skip-plan-cache flag in StmtCtx (#40235) 2022-12-30 10:20:17 +08:00
b1967563e3 planner: record reasons when skipping Plan Cache (#40210) 2022-12-28 17:46:16 +08:00
5f1a739491 planner: add more test cases for non-prep plan cache (#40060) 2022-12-20 19:58:54 +08:00
aeceb22fa6 planner: rename general plan cache to non-prepared plan cache (#39873) 2022-12-13 17:16:13 +08:00
bd014d67e0 *: add context for preprocess (#38360)
close pingcap/tidb#38359
2022-10-18 17:27:53 +08:00
1f5bddc682 planner: fix index join range display when executing the cached plan (#38284)
close pingcap/tidb#38269
2022-10-10 14:49:49 +08:00
da3dab17db *: restrict index range mem usage (#37754)
ref pingcap/tidb#37176
2022-09-22 00:29:02 +08:00
001abf4366 *: restrict column range mem usage (#37714)
ref pingcap/tidb#37176
2022-09-09 21:10:56 +08:00
58822f8859 planner: get plan from the general plan cache before optimization (#37634) 2022-09-06 16:58:39 +08:00
b2723bf8ff planner: replace simple LRU with plan cache LRU (#37423)
ref pingcap/tidb#36598
2022-09-05 13:32:55 +08:00
5dc3e58485 planner: introduce the general plan cache (#37150)
ref pingcap/tidb#36598
2022-08-16 20:24:51 +08:00
97f9c225a3 planner: add two functions to get and set cached plan from the plan cache (#37112)
ref pingcap/tidb#36598
2022-08-16 11:38:51 +08:00
0e00c4b53a planner: move logic of plan cache stmt checking to plan cache backend (#37053)
ref pingcap/tidb#36598
2022-08-15 15:14:50 +08:00
7d8c45aa4d planner: provide a unified interface to set and get user variables and types (#37046)
ref pingcap/tidb#36598
2022-08-11 19:18:50 +08:00
af989fb6c4 executor: add privilege check for prepare stmt (#36933)
close pingcap/tidb#35784
2022-08-10 21:32:50 +08:00
ba8e7cc78e planner: remove keyword prepared in plan cache backend (#37023)
ref pingcap/tidb#36598
2022-08-10 17:50:48 +08:00
f403e198c4 planner: handle PointPlan specially in execute statements (#36987)
close pingcap/tidb#36783
2022-08-09 21:36:48 +08:00
d76074623c planner: unify the parameters name in plan cache (#36899)
ref pingcap/tidb#36598
2022-08-05 17:20:06 +08:00
5e00a1540f planner: clean useless Plan Cache code of binary protocol parameters (#36887)
ref pingcap/tidb#36598
2022-08-04 16:58:06 +08:00
5ef18981cc Revert "planner: refactor the IsolationReadEngines variable for plan cache" (#36873) 2022-08-04 10:30:06 +08:00
3847d9e56f planner: refactor the IsolationReadEngines variable for plan cache (#36770)
ref pingcap/tidb#36598
2022-08-03 19:44:05 +08:00
b364cecdcc planner: use the unified parameters for plan cache (#36781) 2022-08-03 18:35:49 +08:00