Commit Graph

53 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
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
482ccd6b6d planner: refactor a few code of plan cache (#54362)
ref pingcap/tidb#54057
2024-07-01 15:29:56 +00:00
b9a31b231a planner: add CloneForPlanCache method to Plan interface (#54285)
ref pingcap/tidb#54057
2024-06-28 02:28:26 +00:00
9aeaa76c5c *: fix a bug that update statement uses point get and update plan with different tblInfo (#54183)
close pingcap/tidb#53634
2024-06-26 10:28:23 +00:00
d0e775dab0 planner: rename session plan cache interface (#54102)
ref pingcap/tidb#54057
2024-06-19 07:34:17 +00:00
00eafc0933 planner: refactor a few code of plan cache (#54075)
ref pingcap/tidb#54057
2024-06-18 07:22:23 +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
58469bb9fb planner: simplify plan cache for fast point get (#53135)
ref pingcap/tidb#50618
2024-05-09 14:23:38 +00:00
50b8dfab22 planner: simplify plan cache for fast point get (#53094)
ref pingcap/tidb#50618
2024-05-08 10:04:08 +00:00
2b754c7599 planner: simplify plan cache for fast point get (#53090)
ref pingcap/tidb#50618
2024-05-08 01:37:07 +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
cfbabfa705 stmtctx: use a standalone RangeFallbackHandler (#52738)
close pingcap/tidb#52737
2024-04-22 13:04:39 +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
12833e8278 executor, planner: minimize the context used by the ranger package (#52363)
close pingcap/tidb#52362
2024-04-09 10:57:21 +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
482ce59bf6 expression: separate BuildContext and EvalContext (#52311)
close pingcap/tidb#52310
2024-04-03 09:42:24 +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
f1410bf2a8 planner: seperate methods in PlanContext and EvalContext/BuildContext (#51382)
close pingcap/tidb#51381
2024-02-28 11:03:31 +00:00
5b187e5e56 planner: standalone implement for PlanContext (#51237)
close pingcap/tidb#51236
2024-02-22 15:03:28 +00:00
1ee58bf15b planner: replace context in planbuilder to PlanContext (#51172)
ref pingcap/tidb#51070, close pingcap/tidb#51171
2024-02-21 10:49:57 +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
9416934ea3 *: split planner errors and remove duplicate definitions (#50695)
ref pingcap/tidb#48875
2024-01-26 09:42:21 +00:00
bfa10bdc18 bindinfo: SetSkipPlanCache use nostack errors (#50585)
close pingcap/tidb#49291
2024-01-19 05:34:47 +00:00
9b4cf39b7a planner: show the reason why cannot hit plan cache for EXECUTE statements (#50505)
close pingcap/tidb#50407
2024-01-17 17:27:16 +00:00
9b0fd9ea29 *: renaming variables/structs to improve readability / decrease confusion (#49989)
close pingcap/tidb#49988
2024-01-06 02:58:51 +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
617eb0a5d6 planner: support global binding fuzzy matching (#50085)
ref pingcap/tidb#48875
2024-01-04 14:59:04 +00:00
3389437f74 planner: refactor interface for binding match and prepare for fuzzy binding match (#50001)
ref pingcap/tidb#48875
2024-01-03 15:42:32 +00:00
965ad8a142 planner: simplify the binding interface (#49987)
ref pingcap/tidb#48875
2024-01-03 04:00:32 +00:00
3a8b5ac2b0 planner: move more hint code to a separate package (#49673)
ref pingcap/tidb#48875
2023-12-21 10:42:50 +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
45b4e4a9ed planner: check whether plan-cache is disabled each time when getting plan from the plan cache (#49373)
close pingcap/tidb#49344
2023-12-12 11:06:33 +00:00
90e272abc3 planner: encapsulate binding operations behind 2 interfaces (#49261)
ref pingcap/tidb#48875
2023-12-08 02:25:23 +00:00
46d4231c8b planner: standardize some terminologies in binding pkg (#48957)
ref pingcap/tidb#48875
2023-11-28 07:44:46 +00:00
9062834986 expression: add ctx to expression.Eval (#48609)
close pingcap/tidb#48608
2023-11-22 05:29:40 +00:00