Commit Graph

437 Commits

Author SHA1 Message Date
fcd20a3189 linter: enable qf1004 (#44447)
ref pingcap/tidb#40786
2023-06-06 11:28:00 +00:00
4714df8a83 executor: fix issue of can not get the TxnStart if the SQL has a non-related subquery (#44232)
close pingcap/tidb#40851
2023-05-29 09:10:41 +00:00
5f92a50a66 *: fix incorrect handling of EXECUTE stmt in plan replayer capture (#43662)
close pingcap/tidb#43620
2023-05-10 13:46:07 +00:00
1bbc6924fd *: add more stats related diagnostic information to execution plan and slow log (#43114)
close pingcap/tidb#43122
2023-04-20 07:13:19 +08:00
bcd2233901 *: format the error message when query/instance exceeds memory quota (#43182)
close pingcap/tidb#42044
2023-04-19 23:13:32 +08:00
5322b51bd8 *: add debug trace to plan replayer (#43048) 2023-04-17 19:55:26 +08:00
d6a5054b72 *: global memory controller should not kill session whose mem less than limit_sess_min_size (#42803) 2023-04-07 13:02:58 +08:00
566c3f6f8e planner: refactor PreparedParams for non-prep plan cache (#42844)
ref pingcap/tidb#36598
2023-04-06 21:32:58 +08:00
e6cf1ab854 executor: lock untouched unique keys on update (#42713)
close pingcap/tidb#36438
2023-03-31 21:46:55 +08:00
0344a3b70b *: add plan hint to slow log files when redaction is enabled (#42170)
close pingcap/tidb#42169
2023-03-25 14:54:42 +08:00
0fe2637137 server: fix unstable test-case TestInternalSessionTxnStartTS (#42392)
close pingcap/tidb#42269
2023-03-20 20:40:43 +08:00
cc54d1bba1 txn, session: Rename Aggressive Locking to Fair Locking and enable by default for new clusters (#42108)
ref pingcap/tidb#42107, close pingcap/tidb#42147
2023-03-14 15:54:39 +08:00
ea243088e1 load data: move param and some init logic into importer pkg (#42075)
ref pingcap/tidb#40499
2023-03-13 18:58:40 +08:00
zzm
5f0bdc14c5 slowlog: slowlog with keyspace (#41886)
close pingcap/tidb#41883
2023-03-07 16:49:12 +08:00
zzm
f43b1bb291 stmtsummary: stmtsummary with keyspace (#41882)
close pingcap/tidb#41881
2023-03-06 17:49:11 +08:00
723526708d metrics: attach const label keyspace_id (#41693)
close pingcap/tidb#41698
2023-03-04 00:03:10 +08:00
54a23ef986 adapter, txn: Move aggressive locking controlling logic to handlePessimisticXXX functions to avoid some potential misuses (#41726)
close pingcap/tidb#41724
2023-02-28 16:45:08 +08:00
8805b4c58c executor: fix race when collecting telemetry info of batch copr (#41413)
close pingcap/tidb#41412
2023-02-15 13:06:00 +08:00
696d7d06e9 *: REORGANIZE PARTITION (#38535) (#41096)
close pingcap/tidb#38535
2023-02-11 20:28:00 +08:00
5e8cf8f6e1 metrics: Add metrics and telemetry for aggressive locking (#41038)
close pingcap/tidb#41037
2023-02-09 21:26:01 +08:00
1167fafdd6 stmtsummary: add persistence implementation (#40814)
ref pingcap/tidb#40812
2023-02-09 18:05:59 +08:00
bdef910bec store/copr: enable store batch by default & add extra copr concurrency and batch nums in stats (#40711)
ref pingcap/tidb#39361, close pingcap/tidb#40399
2023-02-09 03:07:59 +08:00
00d48f90e6 *: update util/tracing and remove repeated code (#40825)
close pingcap/tidb#40809
2023-02-06 22:35:58 +08:00
fe4a81df82 sessionctx: add validation for tidb_enable_plan_replayer_continues_capture (#40787) 2023-01-29 17:15:54 +08:00
b1ecabb559 txn: Optimize pessimistic transaction by supporting locking with conflict (#35588)
close pingcap/tidb#40537
2023-01-13 11:09:46 +08:00
7beec04214 sysvar: add switch for plan replayer capture using historical stats (#40492)
* add switch

* fix

* fix

* fix

Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 19:44:33 +08:00
669ba5cbae *: add warnings to slow log and slow query table (#39884)
ref pingcap/tidb#39893
2023-01-05 23:34:21 +08:00
25a247935b session: make plan replayer capture support prepared stmt (#40167)
close pingcap/tidb#40161
2023-01-03 11:32:19 +08:00
b268c65710 *: fix PointGet will return an stale value when tidb_enable_plan_replayer_capture is set (#40197)
close pingcap/tidb#40194
2022-12-28 16:00:17 +08:00
afbef28e56 executor: TiFlash supports stale read (#40048)
close pingcap/tidb#40047
2022-12-27 19:06:16 +08:00
b7e21a0dc4 *: fix slow query nil pointer panic when get session for TTL (#39865)
close pingcap/tidb#39864
2022-12-13 15:16:52 +08:00
63ce7931b0 *: add foreign key check/cascade runtime stats information in explain analyze result (#39203)
close pingcap/tidb#39202
2022-11-30 20:00:01 +08:00
8e4748a211 *: make auto-analyze concurrency configurable (#37078)
close pingcap/tidb#37183
2022-11-30 18:22:01 +08:00
e98e9594bc *: add telemetry support for IndexMerge (#39469)
close pingcap/tidb#39475
2022-11-30 12:23:59 +08:00
1b15732d11 telemetry: add telemetry for alter table compact partition (#39452)
ref pingcap/tidb#36175
2022-11-29 19:07:59 +08:00
5aa66cb5c2 domain: support dump plan replayer capture task during query (#39125)
ref pingcap/tidb#38779
2022-11-16 12:41:54 +08:00
6ab17074b8 telemetry: telemetry supports count flashback cluster (#38901)
close pingcap/tidb#38896
2022-11-04 17:46:03 +08:00
0b3e1e9be0 *: Chunkreuse try reuse chunk in operator (#38607)
close pingcap/tidb#38606
2022-11-04 11:28:00 +08:00
e5d3195c89 executor: generate AST instead of SQL for foreign key cascade (#38796)
close pingcap/tidb#38795
2022-11-04 11:02:01 +08:00
ef95612e84 *: extend the semantic of mem-quota-query to mem-quota-session (#38423)
close pingcap/tidb#38429
2022-11-02 10:45:59 +08:00
38e9aa02ef *: support foreign key on update cascade and set null when execute update statement (#38652)
close pingcap/tidb#38651
2022-11-01 13:07:59 +08:00
bba321c91e *: skip log timeout on maxExecutiontime as slow query for DDL statement. (#38671)
close pingcap/tidb#38580
2022-10-27 19:17:57 +08:00
2cdfdf28c0 executor: fix issue of foreign key cascade delete very slow (#38633) 2022-10-25 17:45:50 +08:00
43468983d9 *: add foreign key cascade delete when execute delete statement (#38377)
close pingcap/tidb#38376
2022-10-21 11:27:54 +08:00
bd014d67e0 *: add context for preprocess (#38360)
close pingcap/tidb#38359
2022-10-18 17:27:53 +08:00
e3e5471300 executor: fix data race in the ScanDetail.ProcessedKeys (#38371)
close pingcap/tidb#38372
2022-10-11 06:23:49 +08:00
fd468fffac executor: fix foreign key check bug when meeting pessimistic lock error (#38338)
close pingcap/tidb#38264
2022-10-09 18:01:48 +08:00
858b8a38ea *: add foreign key constraint check when execute insert statement (#37466)
close pingcap/tidb#37465
2022-09-24 00:41:43 +08:00
59b4a8e910 table partition: exchange partition telemetry (#37875)
close pingcap/tidb#37874
2022-09-22 01:25:02 +08:00
b0e073478f execution: commit the transaction before responding explain analyze results to the client (#38044)
close pingcap/tidb#37373
2022-09-21 20:45:03 +08:00