Commit Graph

414 Commits

Author SHA1 Message Date
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
06a1659521 *: Telemetry for multi-column RANGE COLUMNS partitioning (#37828)
ref pingcap/tidb#36636
2022-09-17 00:16:59 +08:00
f78c148e02 txn: forbid savepoint when lazy uniqueness check is enabled (#37817)
ref pingcap/tidb#36579
2022-09-15 10:28:58 +08:00
0f4c3e6252 executor: fix setting system variables to original values failed after auto analyze (#37551)
close pingcap/tidb#37410
2022-09-14 18:30:59 +08:00
f0d8d47df5 telemetry: interval partitioning (#36486)
close pingcap/tidb#36525
2022-09-14 18:12:58 +08:00
5a8e1b2665 executor: exit all goroutines immediately when exceeded mem-quota (#37405)
close pingcap/tidb#37379
2022-09-14 14:12:58 +08:00
62480cf19b *: add telemetry support for account lock/unlock (#37344)
close pingcap/tidb#37324
2022-09-07 18:40:56 +08:00
835922a5cd txn: support skipping locking of some INSERT in pessimistic transactions (#36473)
close pingcap/tidb#36579
2022-09-01 18:34:25 +08:00
c372adb7a8 planner: refactor PrepareExecutor (#37519)
ref pingcap/tidb#36598
2022-09-01 18:10:25 +08:00
d435267600 statistics: track used stats status during query (#37101)
ref pingcap/tidb#36481
2022-08-25 12:14:21 +08:00
4cf7eeee64 planner: add warn log for sync stats (#36956) 2022-08-22 15:24:20 +08:00
d5ce00e8b0 executor: generate fields in chunkRowRecordSet lazily (#37156)
ref pingcap/tidb#36049
2022-08-17 12:02:51 +08:00
b705a13c7b planner: unify the Compile and CompileExecStmt functions (#37065)
ref pingcap/tidb#36598
2022-08-16 18:36:51 +08:00
e38c45cd8c *: save some WithLabelValues (#37106)
ref pingcap/tidb#36049
2022-08-16 14:48:51 +08:00
ba8e7cc78e planner: remove keyword prepared in plan cache backend (#37023)
ref pingcap/tidb#36598
2022-08-10 17:50:48 +08:00
45f82afa20 executor: revert #36498 to avoid perf regression (#37005)
ref pingcap/tidb#36438
2022-08-10 10:42:48 +08:00
6c8bb7cf15 executor: avoid log empty binary plan into slow log (#36619)
close pingcap/tidb#36617
2022-07-27 18:37:11 +08:00
c80026e61f executor: also collect unchanged unique keys for lock (#36498)
close pingcap/tidb#36438
2022-07-25 21:43:11 +08:00
8bc002e77c table partition: add telemetry for partition table (#36204)
close pingcap/tidb#34949
2022-07-22 11:53:09 +08:00
23f25af211 executor,metrics: add a metric for observing execution phases (#35906)
ref pingcap/tidb#34106
2022-07-21 21:31:09 +08:00
a52656fde4 *: add binary plan in stmt summary and slow log/query (#35698)
close pingcap/tidb#35889
2022-07-20 18:21:09 +08:00
7953d60c1b *: switch to flat plan in stmt summary, slow log, etc (#36069)
ref pingcap/tidb#35888
2022-07-14 17:37:06 +08:00
28c96008a9 executor: check the error returned by handleNoDelay (#36105)
close pingcap/tidb#35105
2022-07-13 19:45:05 +08:00
c76d686e67 *: add telemetry support for multi-schema change (#35977)
ref pingcap/tidb#14766
2022-07-06 16:27:03 +08:00