Commit Graph

43 Commits

Author SHA1 Message Date
e1626a9c5b planner: fix the issue of reusing wrong point-plan for "select ... for update" (#54661)
close pingcap/tidb#54652
2024-07-17 03:17:59 +00:00
4b557dda0b planner: add more test cases for Plan.Clone (#54537)
ref pingcap/tidb#54057
2024-07-11 07:24:04 +00:00
f490a98438 *: add context.Context parameter to infoschema TableByName (#54479)
ref pingcap/tidb#50959
2024-07-09 16:04:33 +00:00
593c415707 planner: Remove CloneForPlanCache method (#54528)
ref pingcap/tidb#54057
2024-07-09 15:12:03 +00:00
7a0611ff35 planner: consider using instance level plan cache (#54472)
ref pingcap/tidb#54057
2024-07-05 15:42:01 +00:00
d19fc99ec6 planner: refactor a few code of plan cache (#54464)
ref pingcap/tidb#54057
2024-07-05 03:50:58 +00:00
3a384e6066 planner: refactor a few code of plan cache (#54442)
ref pingcap/tidb#54057
2024-07-04 14:22:28 +00:00
ef53d61c10 planner: refactor a few code of plan cache (#54404)
ref pingcap/tidb#54057
2024-07-03 11:31:27 +00:00
5909899601 expression,*: remove the session context inside ParamMarker (#53534)
close pingcap/tidb#53533
2024-07-03 07:44:58 +00:00
482ccd6b6d planner: refactor a few code of plan cache (#54362)
ref pingcap/tidb#54057
2024-07-01 15:29:56 +00:00
486995620a planner: a new thread-safe lock-free plan cache (#54089)
close pingcap/tidb#54057
2024-06-25 11:32:51 +00:00
00eafc0933 planner: refactor a few code of plan cache (#54075)
ref pingcap/tidb#54057
2024-06-18 07:22:23 +00:00
42852ee632 planner: refactor a few code of plan cache (#54058)
ref pingcap/tidb#54057
2024-06-18 02:13:16 +00:00
5e6df4eeb1 expression, *: Eval param get type with context (#53656)
close pingcap/tidb#53653
2024-06-03 09:39:01 +00:00
2038b1fb2a planner: bypass plan cache for cached PointGet plan (#53686)
close pingcap/tidb#53687
2024-05-30 12:01:21 +00:00
87999d1d4a planner: fix small regression caused by #53094 (#53646)
ref pingcap/tidb#50618
2024-05-29 09:23:51 +00:00
87247c113c planner: move code of rebuilding cached plans into a separate file (#53163)
ref pingcap/tidb#50618
2024-05-10 08:20:39 +00:00
341503b0a8 planner: merge fast plan cache and normal plan cache (#53143)
ref pingcap/tidb#50618
2024-05-10 05:53:39 +00:00
50b8dfab22 planner: simplify plan cache for fast point get (#53094)
ref pingcap/tidb#50618
2024-05-08 10:04:08 +00:00
5798dc64f6 Revert "planner: merge fast plan cache and normal plan cache" (#53084)
ref pingcap/tidb#50618
2024-05-07 12:49:08 +00:00
b421b729c8 planner: merge fast plan cache and normal plan cache (#53033)
ref pingcap/tidb#50618
2024-05-06 12:19:10 +00:00
17d3f7fd45 planner: small refactor for plan cache (#53028)
ref pingcap/tidb#50618
2024-05-06 09:04:07 +00:00
70a825397f *: add metadata lock when using the plan cache (#51897)
close pingcap/tidb#51407
2024-04-28 09:16:27 +00:00
a74d9a74c6 planner: small refactor for plan cache (#52837)
ref pingcap/tidb#50618
2024-04-23 10:25:40 +00:00
5aa48d8284 planner: move base plan related output of core pkg and make it well-pkged (#52529)
ref pingcap/tidb#51664
2024-04-15 10:51:06 +00:00
060ff39ab7 planner: simplify plan cache code (#52384)
ref pingcap/tidb#51407
2024-04-07 09:46:49 +00:00
62d6f4737b planner: move fields from ast.Prepared to planner.PlanCacheStmt (#52373)
ref pingcap/tidb#51407
2024-04-07 08:30:20 +00:00
ccbab5eeb7 *: Enable plan cache for partitioned tables (#49161)
close pingcap/tidb#33031, close pingcap/tidb#45532
2024-03-12 05:38:08 +00:00
5b187e5e56 planner: standalone implement for PlanContext (#51237)
close pingcap/tidb#51236
2024-02-22 15:03:28 +00:00
ee1864460f planner: introduce PlanContext to provide context for planner phase (#51074)
close pingcap/tidb#51070
2024-02-08 10:35:47 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
9416934ea3 *: split planner errors and remove duplicate definitions (#50695)
ref pingcap/tidb#48875
2024-01-26 09:42:21 +00:00
799a46107e planner: move more hint code to the hint package (#50728)
ref pingcap/tidb#48875
2024-01-25 15:09:21 +00:00
bfa10bdc18 bindinfo: SetSkipPlanCache use nostack errors (#50585)
close pingcap/tidb#49291
2024-01-19 05:34:47 +00:00
6be00181f7 planner: enhance fix control 49736 (#50405)
ref pingcap/tidb#49736
2024-01-15 03:20:48 +00:00
c3346856e6 planner: avoid repeat normalization on the same query when matching binding for plan cache (#50133)
ref pingcap/tidb#48875
2024-01-05 09:58:51 +00:00
5fe79401b8 planner: add more test cases for fuzzy binding (#50106)
ref pingcap/tidb#48875
2024-01-05 06:51:40 +00:00
bca554aa82 planner: unite the variable name (#49759) 2023-12-26 07:28:58 +00:00
ebd259c6a7 planner: move more hint code to a separate package (#49697)
ref pingcap/tidb#48875
2023-12-22 06:18:45 +00:00
f50e89450e planner: try to match universal bindings when optimization (#49475)
ref pingcap/tidb#48875
2023-12-18 03:07:52 +00:00
6aea95e223 planner: refactor planner module's warning and note generation logic (get rid of unnecessary stack info) (#49390)
close pingcap/tidb#49291
2023-12-14 08:13:50 +00:00
cf23666766 planner: return an error when using prepared protocol with select-into statement (#49357)
close pingcap/tidb#49166
2023-12-12 06:36:18 +00:00
318e82bbb7 *: move most of the packages to 'pkg' (#47123)
ref pingcap/tidb#41241
2023-10-13 14:36:26 +00:00