120 Commits

Author SHA1 Message Date
fc3a31934a executor, sessiontxn/isolation: fix max_execution_time to include TSO wait time (#64408)
close pingcap/tidb#64406
2025-12-30 19:40:02 +00:00
5271f751a0 planner: remove code of the deprecated optimizer trace - 5 (#64945)
ref pingcap/tidb#63725
2025-12-12 04:16:26 +00:00
4a913265a2 *: unifiy the usage of max_execution_time (#64361)
close pingcap/tidb#64360
2025-12-08 05:00:14 +00:00
b302859f2c plugin: add retry information in the plugin completed event. (#64692)
close pingcap/tidb#64691
2025-11-27 07:17:29 +00:00
61bbb073d2 traceevent,*: refine flight recorder (#64199)
close pingcap/tidb#60413, ref pingcap/tidb#64008
2025-11-07 13:18:50 +00:00
e407943c07 *: Collect client network info for topsql to pick topN sql with highest network traffic (#63796)
close pingcap/tidb#62920
2025-11-05 06:51:50 +00:00
e2d602a229 *: add tidb_slow_log_max_per_sec variable to control the number of slow logs written per second (#63996)
close pingcap/tidb#63995
2025-11-04 12:50:50 +00:00
800cf83e02 memory: global mem resources arbitrator (#63073)
close pingcap/tidb#58194
2025-10-30 13:13:49 +00:00
85e6857638 traceevent: fix point-get short path and prev_trace_id tracking (#64147)
ref pingcap/tidb#64008
2025-10-29 07:29:01 +00:00
1a9221eacb *: add a variable for dynamic slow log trigger rules with global (supporting ConnID-specific) and session scope (#63779)
close pingcap/tidb#63778
2025-10-23 06:21:16 +00:00
db1403ed6f planner: remove IsReadOnly function pointer (#64047)
ref pingcap/tidb#52714
2025-10-21 06:16:19 +00:00
72d3468d10 *: add SQL hint to force slow log output (#63262)
close pingcap/tidb#63261
2025-09-29 03:07:19 +00:00
79d1306f62 *: parse and match slow log trigger rules for multi-dimensional triggering (#63132)
close pingcap/tidb#63131
2025-09-24 03:52:58 +00:00
7cf087bde5 txn: check max_execution_time when locking keys (#63000)
close pingcap/tidb#62960
2025-09-23 03:45:01 +00:00
6e8336654e executor: downgrade some error logs (#63494)
close pingcap/tidb#59502, close pingcap/tidb#63493
2025-09-18 11:16:02 +00:00
bbd963f9cb executor, plugin: add statement id info to the plugin (#63526)
close pingcap/tidb#63525
2025-09-16 12:04:06 +00:00
56bb6feb99 executor: fix issue explain analyze DML with foreign key cascade may has bug (#63277)
close pingcap/tidb#63276
2025-09-02 11:07:40 +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
cd1aa428de *: tiny cleanup LogSlowQuery (#62989)
close pingcap/tidb#62988
2025-08-16 12:30:47 +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
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
c3722d72ad planner: move physical projection related logic into physical op dir (#62533)
ref pingcap/tidb#52714
2025-07-23 02:31:21 +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
7d757626e1 planner: move physical table dual related logic into unified physical op file. (#62394)
ref pingcap/tidb#52714
2025-07-17 08:55:54 +00:00
6ec48101ca *: refactor LogSlowQuery by extracting two reusable functions and simplifying logic (#62425) 2025-07-16 10:51:18 +00:00
15fe8f1be9 telemetry: add telemetry related code back (#61753)
close pingcap/tidb#61766
2025-07-04 05:19:57 +00:00
a061683438 stmtsummary: add binding_digest and binding_digest_text columns (#61950)
ref pingcap/tidb#60148
2025-06-27 20:09:45 +00:00
a268223774 domain: load system keyspace info schema (#61939)
ref pingcap/tidb#61702
2025-06-25 10:41:57 +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
f350b69798 planner: support "explain explore analyze" when exploring new plans offline (#61778)
ref pingcap/tidb#60148
2025-06-18 02:32:33 +00:00
e70afd2a44 planner: Support brief format for explain for connection (#61230)
close pingcap/tidb#60965
2025-06-10 08:20:43 +00:00
9f0b4b781f *: Update metrics and slow log keyspace info for next gen (#61284)
ref pingcap/tidb#60864
2025-05-23 11:11:25 +00:00
41045f1871 txn: also update the @@tidb_last_txn_info for readyonly or rollback txns (#61057)
close pingcap/tidb#61056
2025-05-13 14:04:48 +00:00
34afcbb9d3 executor: gopls modernize (#60787)
close pingcap/tidb#60786
2025-05-07 14:32:26 +00:00
a4fcbae7b4 *: Support metrics and slowlog with keyspace info for next gen (#60865)
ref pingcap/tidb#60864
2025-04-27 11:46:06 +00:00
2c103b46a4 topsql: move fast plan check to beginning of observeStmtBeginForTopSQL when disable top sql (#60605)
close pingcap/tidb#60604
2025-04-16 10:22:43 +00:00
ea52376d91 runaway: fix the issue where COOLDOWN/SWITCH_GROUP can't be triggered (#60457)
close pingcap/tidb#60404
2025-04-15 05:34:43 +00:00
61c09e601e build(deps): bump github.com/golangci/golangci-lint from 1.63.4 to 1.64.7 (#60029) 2025-04-03 07:44:54 +00:00
be7ebdb004 executor: Refact pointGetExecutor init function to ensure member fields are correctly reset (#60337)
close pingcap/tidb#57528
2025-04-01 11:40:49 +00:00
7c0c2b16f9 metrics,executor: Refact lockkey duration related stats (#60284)
ref pingcap/tidb#59356
2025-03-28 05:46:03 +00:00
b403c06412 executor,metrics: Add network transmission metrics (#59512)
ref pingcap/tidb#57543
2025-02-13 10:31:19 +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
51d723b5e2 sessionctx, executor, infoschema: Add fine grained network traffic stats in slow log (#59041)
ref pingcap/tidb#57543
2025-01-22 02:19:05 +00:00
c34a6b69f6 executor,util: Stat inner/inter zone network traffic for MPP tasks (#58683)
close pingcap/tidb#58682
2025-01-21 02:11:44 +00:00
b2f2faaa95 parser: move 'model' to 'ast' pkg (#58704)
ref pingcap/tidb#54436
2025-01-07 10:20:04 +00:00
fc3c894e39 stmtsummary: tiny optimize by avoiding unnecessary calculations (#58562)
ref pingcap/tidb#56649
2024-12-27 06:55:31 +00:00
457dcc6bbd planner: refactor some code of binding cache (#58504)
ref pingcap/tidb#51347
2024-12-24 09:57:15 +00:00
a3d60bcfc6 executor: Optimize statement summary performance by avoiding heap memory allocation (#58023)
ref pingcap/tidb#56649
2024-12-11 17:00:12 +00:00
37a1f42e7d executor,distsql,util: distinguish walltime from sum of walltime in execution info (#57507)
close pingcap/tidb#56746
2024-11-28 08:27:35 +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