Commit Graph

151 Commits

Author SHA1 Message Date
3ca5d3d618 planner,txn: fix the bug that RESOURCE_GROUP() hint can not take effect for write … (#44513)
close pingcap/tidb#44512
2023-06-15 09:31:10 +00:00
87bd41b40e planner: enable revive for part code (#44382)
ref pingcap/tidb#40786
2023-06-05 03:17:40 +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
Hu#
0af1bd701e bind: fix global binding hint for resource groups (#43738)
ref pingcap/tidb#38825, close pingcap/tidb#43736
2023-05-12 12:42:22 +00:00
0423a09188 planner, statistics: add more debug trace (#43200)
ref pingcap/tidb#43069
2023-04-20 06:11:20 +08:00
9af82b4298 planner: write statements to read on TiFlash only in strict sql mode (#43091)
close pingcap/tidb#43090
2023-04-19 00:03:18 +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
bc9c058975 planner: keep the original AST unchanged if hit non-prep plan cache (#42841)
ref pingcap/tidb#36598
2023-04-06 20:26:58 +08:00
4675e4e169 planner: add more test cases for non-prep plan cache (#42801)
ref pingcap/tidb#36598
2023-04-04 19:28:57 +08:00
51a25c714e planner: add more test cases for non-prep plan cache (#42793)
ref pingcap/tidb#36598
2023-04-04 13:20:57 +08:00
2dc5b02b08 planner: add more test cases for non-prep plan cache (#42711)
ref pingcap/tidb#36598
2023-03-30 17:12:55 +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
4060cda69e *: data race at the SessionVars.PlanID (#42373)
close pingcap/tidb#42372
2023-03-20 15:02:40 +08:00
4f44dab83c test: fix data race (#42306)
close pingcap/tidb#42270
2023-03-17 01:02:39 +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
382b388df6 planner: add new explain format for plan cache (#41965)
ref pingcap/tidb#36598
2023-03-08 00:03:12 +08:00
17bbc2961b *: support resource_group sql hint (#41678)
* *: support resource_group sql hint

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: refine case

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: make case stable

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: code format

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: relocate the cases

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: fix bazel attribute

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: fix bazel

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: code fmt

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: code format

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: address comments

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: address comments for 2nd round

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: polish check logic

Signed-off-by: BornChanger <dawn_catcher@126.com>

---------

Signed-off-by: BornChanger <dawn_catcher@126.com>
2023-03-06 18:34:13 +08:00
8ba69c5d4a planner: existing explain format can not use non-prepared plan cache (#41945)
ref pingcap/tidb#36598
2023-03-06 17:49:26 +08:00
226952e085 planner: add more test cases for non-prep plan cache (#41809)
ref pingcap/tidb#36598
2023-03-01 17:07:10 +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
00bbd16697 planner: add diagnosis information for non-prep plan cache (#41660)
ref pingcap/tidb#36598
2023-02-22 17:09:07 +08:00
74d550c685 planner: add more test cases for non-prepared plan cache (#41451)
ref pingcap/tidb#36598
2023-02-15 19:06:02 +08:00
7326e2f2a0 planner: report the warning when use the hint but the SQL has the binding (#40949)
close pingcap/tidb#40910
2023-02-01 22:45:56 +08:00
cbe228fe50 hint: fix the problem that set var hint is invalid when create binding (#40569)
close pingcap/tidb#40570
2023-01-13 18:29:47 +08:00
5f1a739491 planner: add more test cases for non-prep plan cache (#40060) 2022-12-20 19:58:54 +08:00
017901d1d6 *: extend skyline pruning diagnostic info and add extra warnings (#39894)
ref pingcap/tidb#39893
2022-12-20 18:00:55 +08:00
9f4dd8039b planner: fix the issue that NonPrep Cache cannot work with Explain well (#40044)
close pingcap/tidb#40039
2022-12-20 13:50:54 +08:00
aeceb22fa6 planner: rename general plan cache to non-prepared plan cache (#39873) 2022-12-13 17:16:13 +08:00
4d11314bd6 plan: refine build plan and skip privilege check for foreign key cascade (#39508)
close pingcap/tidb#39529
2022-12-02 11:02:00 +08:00
63ce7931b0 *: add foreign key check/cascade runtime stats information in explain analyze result (#39203)
close pingcap/tidb#39202
2022-11-30 20:00:01 +08:00
c88fd23f90 planner: add sqlDigest and planDigest field when show bindings (#39156)
ref pingcap/tidb#39199
2022-11-30 00:04:00 +08:00
8a5ccd87d7 planner: support the view hint(part-2) (#39280)
ref pingcap/tidb#37887
2022-11-29 19:50:00 +08:00
ad4d43219a planner: support record table runtime stats during optimize (#38876)
ref pingcap/tidb#38779
2022-11-08 19:31:50 +08:00
16911610d2 extension: provide more complete info in StmtEventInfo when error (#38963)
close pingcap/tidb#38962
2022-11-08 17:55:50 +08:00
58822f8859 planner: get plan from the general plan cache before optimization (#37634) 2022-09-06 16:58:39 +08:00
3e39d4514f *: add a config to enable write statements to read on TiFlash (#37516)
close pingcap/tidb#37515
2022-09-02 17:54:25 +08:00
c372adb7a8 planner: refactor PrepareExecutor (#37519)
ref pingcap/tidb#36598
2022-09-01 18:10:25 +08:00
5dc3e58485 planner: introduce the general plan cache (#37150)
ref pingcap/tidb#36598
2022-08-16 20:24:51 +08:00
38c0d09f06 test,planner: only increase optimizeCnt for specified sql in test (#37094)
close pingcap/tidb#37059
2022-08-15 16:22:50 +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
e234e00fcd planner: skip the optimizer for the execute statement (#36612)
ref pingcap/tidb#36598
2022-08-08 13:48:47 +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
0b1d3e0da3 *: cleanup sysvar API usage (#36640)
close pingcap/tidb#36639
2022-08-02 07:54:04 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
16f143f875 planner: refactor the execute path when using plan cache (#36587)
ref pingcap/tidb#36598
2022-07-27 12:31:10 +08:00
dced89a231 planner/core, planner, sessionctx/variable: remove more skipInit (#35992)
ref pingcap/tidb#35051
2022-07-13 11:27:05 +08:00
2e1e3f1269 *: Introduce OptimisticTxnContextProvider for optimistic txn (#35131)
close pingcap/tidb#35130
2022-06-21 00:04:37 +08:00
738f681d61 *: Introduce PessimisticRRTxnContextProvider for pessimistic repeatable read txn (#35158)
close pingcap/tidb#35129
2022-06-13 11:44:34 +08:00