Commit Graph

48 Commits

Author SHA1 Message Date
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
9dc8189afa dxf: add metrics for alert purpose in nextgen (#64100)
ref pingcap/tidb#61702
2025-10-27 07:27:31 +00:00
11cddd586a planner: Test that plans with RESOURCE_GROUP hints are handled correctly by the plan cache. (#62818)
ref pingcap/tidb#61876
2025-08-23 02:40:35 +00:00
xhe
bc0d97a44d variable: change tidb_redact_log to global variable (#62892)
close pingcap/tidb#62890
2025-08-16 04:03:47 +00:00
a49b6396b1 planner: move column pruning & collect stats rule into specific rule dir (#62984)
ref pingcap/tidb#55231
2025-08-14 10:57:57 +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
102ffeccba mdl/sessionmanager: some refactor of MDL loop and move sessionmanager from util to session pkg (#62671)
ref pingcap/tidb#61702
2025-07-29 12:55:28 +00:00
10c9872c78 planner: Allow prepared and non-prepared queries with set_var and resource_group hints to be cached. (#62367)
close pingcap/tidb#60920
2025-07-14 11:33:06 +00:00
5968f818bf planner: lift the canPushToCop check of logical join/window/selection (#62206)
ref pingcap/tidb#62006
2025-07-07 02:39:57 +00:00
063fa72687 planner: lift the can-push-to-cop check of aggregation/proj (#62068)
ref pingcap/tidb#62006
2025-07-03 13:35:00 +00:00
e70afd2a44 planner: Support brief format for explain for connection (#61230)
close pingcap/tidb#60965
2025-06-10 08:20:43 +00:00
fb627a3fa2 planner: fix new index join build forget to convert cop to root when prop require rootTaskType (#61275)
close pingcap/tidb#61272
2025-05-23 15:21:25 +00:00
bf9fbde9e9 planner: add variable control for index join build v2 and default them on (#60592)
close pingcap/tidb#60106
2025-05-21 08:34:46 +00:00
9cc4672d69 planner: gopls modernize (#60781)
close pingcap/tidb#60780
2025-05-19 16:17:43 +00:00
07333a947f planner: Enable the non-prepared plan cache for queries with bindings. (#61048)
close pingcap/tidb#61047
2025-05-09 23:53:21 +00:00
1b8d15bd14 planner: Enable non-prepared plan cache for queries with hints. (#60952)
ref pingcap/tidb#60920
2025-05-08 19:46:54 +00:00
beee242769 planner: Covering tests for plan cache and partitioned tables. (#52168)
ref pingcap/tidb#33031
2024-09-19 17:25:45 +00:00
3176b9c263 *: move XXInfo/Job, etc, out from model pkg in parser to meta (#55754)
ref pingcap/tidb#54436
2024-09-04 04:49:45 +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
d383367ead planner: add new variables for instance plan cache (#55193)
ref pingcap/tidb#54057
2024-08-06 02:51:39 +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
7a0611ff35 planner: consider using instance level plan cache (#54472)
ref pingcap/tidb#54057
2024-07-05 15:42:01 +00:00
482ccd6b6d planner: refactor a few code of plan cache (#54362)
ref pingcap/tidb#54057
2024-07-01 15:29:56 +00:00
08b7ac6218 planner: fix the issue that cannot find column if using question marker in group-by-clause (#54205)
close pingcap/tidb#53872
2024-06-26 05:14:52 +00:00
d860287a2b expression: fix the wrong behavior of conv function (#53681)
close pingcap/tidb#53505
2024-05-30 09:58:21 +00:00
3485857563 ranger: handle float/integers overflow properly (#53501)
close pingcap/tidb#46538
2024-05-23 11:28:18 +00:00
fe5858b00c ranger: handle longlong overflow properly (#52365)
close pingcap/tidb#45783
2024-05-23 01:40:17 +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
af76c2ff1e planner: support OR list nested in AND list for mv index (#51716)
close pingcap/tidb#51778
2024-03-18 06:23:13 +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
f2cbe00ed9 planner: allow the optimizer to cache query plans accessing generated columns by default (#51654)
close pingcap/tidb#45798
2024-03-11 12:24:38 +00:00
54cca35e62 planner: choose to generate optimal plans without plan cache rather than generating suboptimal plans and caching it when generating MVIndex plans (#51546)
ref pingcap/tidb#45798
2024-03-07 11:51:35 +00:00
42efa55a69 planner: add more test cases for plan cache with generated columns (#51510)
ref pingcap/tidb#45798
2024-03-05 10:23:13 +00:00
5ac8a5b463 planner: add more test cases for plan cache with generated columns (#51483)
ref pingcap/tidb#45798
2024-03-04 11:20:05 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +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
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
a8a7525456 planner: introduce a new fix-control variable to lift all plan cache restrictions for testing (#49754)
close pingcap/tidb#49736
2023-12-25 11:42:26 +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
077a3e96cb tests: Update mysql-tester, move tests related with RowsAffected and LastMessage (#48789)
ref pingcap/tidb#45961
2023-11-23 04:11:49 +00:00
184aa7e3c3 planner: fix the issue that plan cache may return wrong result when comparing datetime column with unix_timestamp (#48413)
close pingcap/tidb#48165
2023-11-08 16:41:12 +00:00
0d9a4ce8b8 *: update linter (#48252)
ref pingcap/tidb#40786
2023-11-06 07:18:41 +00:00
a51ea16fb7 planner: introduce a new fix-control flag to control whether to cache plans that access generated columns (#48011)
ref pingcap/tidb#45798
2023-10-26 16:02:04 +00:00
318e82bbb7 *: move most of the packages to 'pkg' (#47123)
ref pingcap/tidb#41241
2023-10-13 14:36:26 +00:00