Commit Graph

244 Commits

Author SHA1 Message Date
c8d2bef20e planner: move physical related logic into physical op dir (#63401)
ref pingcap/tidb#52714
2025-09-08 10:39:06 +00:00
5810837368 test: fix or skip some failed next-gen tests (#63355)
close pingcap/tidb#63343
2025-09-05 17:57:12 +00:00
tpp
013cacffeb planner: Add variable for no_decorrelate in select list (#63204)
close pingcap/tidb#51116
2025-09-03 18:34:00 +00:00
032d5f827a sessionctx: set strict assertion level as default for next-gen (#63174)
close pingcap/tidb#63172
2025-08-29 03:45:25 +00:00
50e9e88a75 planner: update the fundamental NDV scaling estimation formula (#63068)
close pingcap/tidb#54812
2025-08-27 14:03:34 +00:00
c7c45c2d0a planner,selectivity: record the default selectivity (#63102)
close pingcap/tidb#55366
2025-08-26 08:42:18 +00:00
5fab436e60 planner: use expoBackoff for GROUP BY cardinality estimation when no … (#62813)
close pingcap/tidb#62756
2025-08-25 21:16:10 +00:00
d3a8bdc50f txn, planner: Fix the problem that with pessimistic-auto-commit enabled, some internal transactions may try to commit transaction with MaxUint64 (#62881)
close pingcap/tidb#62775
2025-08-25 06:38:19 +00:00
8c88b61875 tests: fix unit tests for next-gen (#62895)
ref pingcap/tidb#61702
2025-08-20 19:51:02 +00:00
259852d340 *: add the new SEMv2 config and implement most of the functions (#61634)
close pingcap/tidb#61582, close pingcap/tidb#61583, close pingcap/tidb#61584, close pingcap/tidb#61585
2025-08-18 13:38:47 +00:00
cd1aa428de *: tiny cleanup LogSlowQuery (#62989)
close pingcap/tidb#62988
2025-08-16 12:30:47 +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
2a35445ba7 mdl: move the set variable check of nextgen from variable pkg to planner (#62882)
ref pingcap/tidb#61702
2025-08-11 04:55:13 +00:00
04590cf4a5 *: simplify ExecDetails by embedding CopExecDetails and removing DetailsNeedP90 (#62600)
close pingcap/tidb#62599
2025-08-09 12:45:24 +00:00
2d07f5c716 mdl: always enable and make it read only in nextgen (#62865)
ref pingcap/tidb#61702
2025-08-07 06:11:21 +00:00
5f051c78d1 sessionctx: mark tidb_enable_auto_analyze_priority_queue as deprecated (#62659) 2025-08-06 15:35:54 +00:00
1dac78fd92 crossks: add info schema coordinator (#62712)
ref pingcap/tidb#61702
2025-08-04 11:40:18 +00:00
bb89e7ab57 br: add global variable to control checkpoint lag limit (#62680)
close pingcap/tidb#62679
2025-08-01 10:52:29 +00:00
e54fe94984 planner: TTL scan can trigger sync/async load/generateRuntimeFilter (#62616)
close pingcap/tidb#61822
2025-07-30 17:18:16 +00:00
a53894aae0 slowlog, stmtsummary: include the storage engine(s) a query read from (#61737)
close pingcap/tidb#61736
2025-07-29 21:38:16 +00:00
433b3710fa planner: use addedRows for out of range and add skew risk ratio (#62363)
ref pingcap/tidb#62093
2025-07-25 02:13:13 +00:00
095ab56023 *: the TaskTimeStats structure is extracted to record time-related statistics in CopTasksDetails, including dimensions such as average, percentage, and maximum. (#62516)
close pingcap/tidb#62515
2025-07-22 10:59:53 +00:00
b778b88220 *: refactor slow log handling by moving relevant logic to a dedicated file and removing unused code paths from MergeExecDetails (#62501) 2025-07-21 14:00:06 +00:00
b61518066b sessionctx: separate the slow log functionality from the session file (#62415) 2025-07-17 04:19:03 +00:00
94121719e2 executor, distsql: add retry for EstablishMPPConnection on failure (#62355)
close pingcap/tidb#62421
2025-07-16 16:45:09 +00:00
81370d4c72 planner: add skew risk ratio for range pred (#62035)
close pingcap/tidb#62093
2025-07-07 20:32:30 +00:00
d87ec2b188 planner: RegardNULLAsPoint should be true as default (#62194)
close pingcap/tidb#62196
2025-07-07 11:09:00 +00:00
15fe8f1be9 telemetry: add telemetry related code back (#61753)
close pingcap/tidb#61766
2025-07-04 05:19:57 +00:00
d31c573cf2 planner: remove useless code (#61968) 2025-07-04 00:49:15 +00:00
tpp
2a74539ace planner: extend order ratio to joins (#61687)
close pingcap/tidb#62034
2025-07-01 02:36:18 +00:00
dbb2c9c833 planner,ddl: rightly fix issue of add foreign key too slow in big table (#61945)
ref pingcap/tidb#40111
2025-06-24 18:12:12 +00:00
216b8cbff8 session: rename circuit breaker sysvar (#61951)
close pingcap/tidb#61614
2025-06-24 08:22:24 +00:00
52ca7d49b4 planner: record explored plans into tidb_statement_stats when running explain explore (#61850)
ref pingcap/tidb#60148
2025-06-23 18:27:06 +00:00
a3cba16f8e planner: fix uninit timeout for loading bindings (#61891)
close pingcap/tidb#61889
2025-06-23 04:21:48 +00:00
c2e5dd3571 session: change the variable range of circuit breaker (#61613)
close pingcap/tidb#61614
2025-06-10 13:11:28 +00:00
1ef4c269cd planner: set the default of the tidb_cost_model_version correctly (#61608)
close pingcap/tidb#61565
2025-06-10 05:22:28 +00:00
0d8e2bb4c5 planner: Make SET_VAR hints restore the correct session variable values after execution. (#61165)
close pingcap/tidb#60905
2025-06-05 17:23:29 +00:00
6d7cb93499 config: add check to keyspace name (#61295)
ref pingcap/tidb#60418
2025-05-26 05:14:22 +00:00
6a4e8cfcd0 variable: tidb_enable_ts_validation (#60548)
close pingcap/tidb#60547
2025-05-22 10:42:38 +00:00
c85f3338e2 planner: consider PreferRange when exploring new plans (#61251)
ref pingcap/tidb#60148
2025-05-22 02:21:10 +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
dfc4eee0b4 planner: a new function to get all relevant optimizer variables related to a certain SQL for SPM (#61119)
ref pingcap/tidb#60148
2025-05-15 18:36:20 +00:00
1b0a54ca86 session: gopls modernize (#60856)
close pingcap/tidb#60855
2025-05-07 22:47:30 +00:00
cad2ab97ed sessionctx: disable fair locking in next-gen (#60698)
ref pingcap/tidb#60697
2025-04-28 03:53:01 +00:00
tpp
3dc48a1653 planner: add skew risk for equals (#60648)
close pingcap/tidb#60722
2025-04-24 04:11:46 +00:00
tpp
4f2d944d55 planner: add hint support for optimizer cost factors (#60558)
ref pingcap/tidb#60357
2025-04-16 04:27:58 +00:00
tpp
d46ecaa4c3 planner: add optimizer cost factors (#60333)
close pingcap/tidb#60357
2025-04-10 21:56:33 +00:00
84183c5550 session: set default value for hash join v2 in NewSessionVars (#60365)
ref pingcap/tidb#53127
2025-04-02 06:51:51 +00:00
914e4ce8d8 session: add a session variable to control whether to use hash join v2 in TiFlash (#60300)
close pingcap/tidb#60299
2025-03-29 04:39:31 +00:00
95181316d5 planner: revert and fix "remove the useless variable tidb_enable_point_get_cache from #36844". (#60272)
close pingcap/tidb#36598
2025-03-27 16:39:52 +00:00