Commit Graph

100 Commits

Author SHA1 Message Date
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
1015cc0438 executor, session: store utf8 string in sessionctx (#57645)
close pingcap/tidb#57646
2024-11-25 04:44:56 +00:00
e234164d7c *: bump client-go with some regression tests (#57282)
ref pingcap/tidb#55287, close pingcap/tidb#56837, ref pingcap/tidb#57338, close pingcap/tidb#57425
2024-11-20 12:32:23 +00:00
5450000d92 executor, session: fix ExecStmt.OriginText to use the actual original text (#57393)
close pingcap/tidb#57396
2024-11-20 04:03:26 +00:00
af930be82f *: fix resource leak in select for update when 'tidb_low_resolution_tso' is set (#57012)
close pingcap/tidb#55468
2024-11-06 15:02:50 +00:00
1acbbec8b5 executor: verify the existence of the resource group before switching (#56145)
ref pingcap/tidb#54434
2024-09-22 11:02:48 +00:00
2a86d34c72 *: fix affected rows metrics to make it compatiable with multi-queries (#55877)
close pingcap/tidb#55875
2024-09-10 02:47:39 +00:00
fef43c5639 *: Add tidbCPU/tikvCPU into system tables (#55455)
close pingcap/tidb#55542
2024-09-05 07:42:28 +00:00
c9baef45d4 pkg/parser: support SWITCH_GROUP syntax for runaway watch (#54804)
ref pingcap/tidb#54434
2024-09-04 16:59:43 +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
6a340883bf server: support global scope for tidb_low_resolution_tso sys var (#55000)
close pingcap/tidb#54999
2024-08-12 14:00:02 +00:00
fdcb2e4afe planner: move logical projection into logicalop pkg. (#55135)
ref pingcap/tidb#51664, ref pingcap/tidb#52714
2024-08-01 12:50:49 +00:00
f838cc89fe txn: fix the lock behaviours when for update is used when low resolution tso is used (#54738)
close pingcap/tidb#54684
2024-07-25 03:22:34 +00:00
13e428061a context, executor: add a function to detach the TableReaderExecutor (#54456)
close pingcap/tidb#53336
2024-07-19 09:43:31 +00:00
afd6d6a33a server: add protocol support for lazy cursor fetch (#54527)
close pingcap/tidb#54526
2024-07-18 10:22:32 +00:00
bf50430eee session, executor, domain: use the SQL start time to calculate the runaway deadline (#54496)
ref pingcap/tidb#54434
2024-07-08 10:12:02 +00:00
6421f86f84 domain: refine the runaway code and fix typos (#54435)
ref pingcap/tidb#54434
2024-07-04 07:49:28 +00:00
467eacce18 executor: fix tidb crash when calling Close and Finish (#54390) 2024-07-03 17:41:42 +08:00
230bbc2ef5 *: reduce mem allocs caused by GetTextToLog (#54111)
ref pingcap/tidb#54047
2024-07-03 04:26:57 +00:00
d5b89f8bcc *: reduce mem allocs of stmt summary (#54128)
ref pingcap/tidb#54047
2024-06-24 12:46:21 +00:00