72 Commits

Author SHA1 Message Date
27a4771206 bindinfo: save bindinfo into stmtctx to avoid calling NormalizeStmtForBinding and getbindcache repeatedly (#65484)
close pingcap/tidb#65100
2026-01-13 19:55:08 +00:00
69aa3a99a6 planner: optimize the schema check phase in the plan cache path (#65118)
ref pingcap/tidb#65117
2025-12-31 18:02:26 +00:00
02fe040a0f planner: optimize NewPlanCacheKey (#65361)
ref pingcap/tidb#65117
2025-12-31 07:53:17 +00:00
ccda674e6b planner: reduce NewPlanCacheKey allocations with sync.Pool (#65072)
ref pingcap/tidb#65117
2025-12-22 11:58:29 +00:00
e0813f3a47 planner: Fix bug in the plan cache when the metadata lock is disabled. (#64795)
close pingcap/tidb#64351
2025-12-11 00:35:20 +00:00
ae6d30c24f planner: re-enable the plan cache generator and move Delete/Inset/Update into physicalop (#63443)
ref pingcap/tidb#52714
2025-09-11 06:20:39 +00:00
3741596d32 planner: move PhysicalPointget related logic into physical op dir (#63168)
ref pingcap/tidb#52714
2025-08-25 09:05:31 +00:00
742b8e0306 txn: tag non-transcational DML's metrics with NTDml (#62837)
close pingcap/tidb#62799
2025-08-16 05:00:59 +00:00
c7003d8d65 planner: Implement ignore_plan_cache hint for non-prepared statements. (#62641)
close pingcap/tidb#62634
2025-07-30 05:50:37 +00:00
e70afd2a44 planner: Support brief format for explain for connection (#61230)
close pingcap/tidb#60965
2025-06-10 08:20:43 +00:00
9cc4672d69 planner: gopls modernize (#60781)
close pingcap/tidb#60780
2025-05-19 16:17:43 +00:00
cf4d252af8 *: split definition out of variable pkg and refactor some reorg methods (#59146)
ref pingcap/tidb#57229, ref pingcap/tidb#57497
2025-01-23 09:24:44 +00:00
b2f2faaa95 parser: move 'model' to 'ast' pkg (#58704)
ref pingcap/tidb#54436
2025-01-07 10:20:04 +00:00
b2e829c2e3 planner: hide read-write fields of PlanCacheValue for safety (#57759)
ref pingcap/tidb#54057
2024-11-27 12:15:50 +00:00
0374ae26b9 planner: provide a system view information_schema.tidb_plan_cache to allow users to see info in the cache (#57699)
ref pingcap/tidb#54057
2024-11-27 03:16:47 +00:00
3578b1da09 *: Use strict validation for stale read ts & flashback ts (#57050)
close pingcap/tidb#56809
2024-11-12 07:46:24 +00:00
e16613d0bc planner: optimize the performance of PointPlan for Instance Plan Cache (#57260)
ref pingcap/tidb#54057
2024-11-11 06:34:29 +00:00
1770006c2e planner: refactor some code of Plan Cache (#57234)
ref pingcap/tidb#54057
2024-11-08 08:12:25 +00:00
d700beba25 planner: add more test cases for plan cache (#56579)
ref pingcap/tidb#54057
2024-10-12 03:29:37 +00:00
c7fde050c3 planner: add more test cases for plan cache (#56380)
ref pingcap/tidb#54057
2024-09-27 13:37:27 +00:00
4c23efb10b *: move annotated attributes of AST node to resolve.Context (#55634)
ref pingcap/tidb#54436
2024-08-29 13:39:01 +00:00
0b6e2e68a4 planner: move logical cte into logicalop pkg (#55496)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-08-21 05:12:12 +00:00
02526988cb *: upgrade linter revive (#55346) 2024-08-16 07:58:11 +00:00
876268f619 *: add ctx parameter to infoschema TableByID (#55329)
ref pingcap/tidb#50959
2024-08-09 10:42:47 +00:00
99857e33e8 server: add tidb_enable_shared_lock_promotion to support for share lock upgrade (#55023)
close pingcap/tidb#55022
2024-08-08 12:26:10 +00:00
fa554f8775 planner: use code-gen to generate CloneForPlanCache method for Insert/Update/Delete (#55185)
ref pingcap/tidb#54057
2024-08-06 04:21:39 +00:00
3fd284b025 planner: add more test cases for Plan Clone (#55011)
ref pingcap/tidb#54057
2024-07-30 11:44:47 +00:00
2d8753bc76 planner: simplify the plan cache code for fast point get (#54838)
ref pingcap/tidb#54057
2024-07-23 10:36:11 +00:00
f5ac1c4a45 *: support tidb_redact_log for explain (#54553)
close pingcap/tidb#54565
2024-07-23 08:45:04 +00:00
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