Commit Graph

88 Commits

Author SHA1 Message Date
72f52f3f09 planner: update the plan cache strategy when expressions with parameters affect null-check (#40218)
close pingcap/tidb#38205, close pingcap/tidb#40093
2022-12-30 11:00:18 +08:00
8e0e49ca65 *: support JSON format output in explain statement (#39253)
ref pingcap/tidb#39261
2022-12-01 12:12:01 +08:00
4476173923 planner: update cost model2 (#39438)
ref pingcap/tidb#35240
2022-11-30 00:29:59 +08:00
7c4610067a planner: update cost formulas of Index*Join of model2 (#39296)
ref pingcap/tidb#35240
2022-11-23 14:47:58 +08:00
3bbffdf7ac planner: update some UTs from cost model1 to model2 (#39065)
ref pingcap/tidb#35240
2022-11-11 13:51:53 +08:00
3208719a63 planner: update some UTs from cost model1 to model2 (#38959)
ref pingcap/tidb#35240
2022-11-08 16:01:50 +08:00
7806b7c151 planner: process over-optimization and skip plan-cache in some cases to avoid disaster plans (#38537)
close pingcap/tidb#38533
2022-10-20 15:51:54 +08:00
5fa9da1bf7 planner: make the meaning of displayed estimated row count consistent with actual row count (#38188)
close pingcap/tidb#38187
2022-10-17 18:45:53 +08:00
886c654e1c planner: refine index join range display for clustered index (#38259)
close pingcap/tidb#38258
2022-09-30 16:23:45 +08:00
70684d39de *: enable mock session manager and schemaLease for all unit tests (#37623) 2022-09-06 14:04:55 +08:00
2858bc1571 *: refine mock session manager (#37400) 2022-08-26 15:06:21 +08:00
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