Commit Graph

77 Commits

Author SHA1 Message Date
244b353a11 planner: support session level for the variable tidb_enable_prepared_plan_cache (#36923)
ref pingcap/tidb#36598
2022-08-08 11:18:47 +08:00
xhe
9a16a8dd19 *: replace defer clean with t.Cleanup (#36722)
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
1923d33622 planner: fix bindings with ignore_plan_cache_hint cannot work (#36427)
close pingcap/tidb#34596
2022-07-25 16:13:11 +08:00
0cbccb74f3 *: move config file options prepared-plan-cache.* to sysvars (#34790)
close pingcap/tidb#30168, ref pingcap/tidb#33769
2022-05-19 16:18:39 +08:00
9f15cac7a7 planner: fix the explain verbose to be NOT case insensitive (#34471)
close pingcap/tidb#34469
2022-05-09 15:44:33 +08:00
02de667042 testkit: add MockSessionManager (#34124)
ref pingcap/tidb#31716
2022-04-21 12:14:04 +08:00
fef98f2239 domain,server,session: optimize gc safepoint advancing for internal transaction (#32726)
close pingcap/tidb#32725
2022-04-07 14:14:32 +08:00
d0e8a53f55 planner: update the structure of the plan cache key (#32665)
ref pingcap/tidb#31056
2022-03-07 18:01:50 +08:00
5d014bcd37 executor: migrate test-infra to testify for explainfor_test.go (#32711)
close pingcap/tidb#28580
2022-03-01 21:19:45 +08:00
f7cc15fe60 executor: fix CTE bug when used with Apply (#31256)
close pingcap/tidb#31255
2022-01-06 15:34:38 +08:00
b43c9ffa85 *: migrate sync.WaitGroup to util.WaitGroupWrapper (#31257)
ref pingcap/tidb#29517
2022-01-04 15:04:35 +08:00
af259faacf planner: support the plan cache aware of bindings (#30169) 2021-12-16 10:18:35 +08:00
2e79433b71 test: merge executor's serial tests to other tests (#30711) 2021-12-15 19:36:35 +08:00
276721877c planner: generate PointGet plans for PlanCache when all conditions are EQ (#29859) 2021-11-17 16:53:47 +08:00
b561dface8 planner: fix wrong results using the unique index column with cached plans (#29312) 2021-11-03 11:23:01 +08:00
33378f926c planner: fix some index merge plans can not be cached when plan cache enable (#29241) 2021-11-01 11:36:16 +08:00
83e559db0a planner: allow refineArgs for plan cache in some situations (#28944) 2021-10-29 18:09:49 +08:00
d6895952df planner: fix outerJoinEliminator couldn't be applied in some cases (#29061) 2021-10-29 12:24:49 +08:00
20023fe9ea planner: add more test cases for plan cache (#29175) 2021-10-28 19:04:50 +08:00
6d24f8cf4b planner: add an extra safe-guard selection upon DataSource to prevent wrong results caused by wrong rebuilt range when using plan-cache (#28976) 2021-10-21 04:12:45 +08:00
d192d17ac6 planner: fix the issue that plan-cache may return wrong results when the IndexLookup depends on a generated column (#28938) 2021-10-19 20:40:43 +08:00
81169b55f4 planner: support rebuild the range of indexMerge when reuse the plan (#28774) 2021-10-15 15:19:26 +08:00
4c4d3f6daa planner: generate the additional filter in table filter when enable plan cache (#28722) 2021-10-12 17:01:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
501e87ec44 planner: fix the issue that some PointGet plans generated in physical-stage cannot be cached (#28478) 2021-10-09 17:33:24 +08:00
091ae3bde0 planner: generate addition selection when plan cache enable (#28457) 2021-09-29 16:38:47 +08:00
047aa7af6f test: make test TestExplainFor stable (#28459) 2021-09-28 19:10:47 +08:00
f7fdffc0b3 planner: adjust the schema when using 'explain for' for verbose format (#26949) 2021-08-18 18:08:01 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
5f42d348de planner: fix prepare plan cache doesn't work for expression index. (#26698) 2021-08-04 13:13:06 +08:00
18cbfaac15 *: enable gosimple linter (#24617) 2021-05-14 09:15:38 +08:00
b1d134d7d9 txn: Add txn state's view (#22908) 2021-05-12 19:25:40 +08:00
01b05745d8 execdetails: refine cop task execution stats display in plan (#23461) 2021-04-01 22:05:24 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
1ac53c546d planner: fix wrong PointGet / TableDual plan reused in plan cache (#23238) 2021-03-17 16:52:55 +08:00
5bafb3203e planner: show cast type in EXPLAIN in coptask (#23123) 2021-03-16 16:16:55 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
8144e1395d *:Adapt ScanDetailV2 in KvGet and KvBatchGet Response (#21562) 2020-12-30 17:02:44 +08:00
27071f14d7 session/bootstrap: disable clustered index by default (#21777) 2020-12-25 15:44:07 +08:00
fd587c3552 session: add a switch for index merge join (#21830)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-18 11:05:05 +08:00
32d19b78e1 *: refine runtime stats display and tiny bug fix for metrics (#21022)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-26 16:35:25 +08:00
1689eeab6f executor: fix cannot use explain for with the statement queried by explain analyze (#21052) 2020-11-25 21:24:07 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
0498d1dd43 unistore: collect ExecutorExecutionSummary and return by DAGResponse (#20769) 2020-11-04 13:38:21 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
8def0480b1 tests: move TestApplyWithOtherFeatures to a serial test suite (#20665) 2020-10-27 16:48:31 +08:00
17b7b5e815 *: add executor runtime info for explain for connection statement (#19183) 2020-09-27 20:44:11 +08:00
486e473a86 session: fix panic when storing outdated plans from plan cache (#19296) 2020-09-27 14:56:02 +08:00