Commit Graph

260 Commits

Author SHA1 Message Date
bada2801ac *: fix cop task runtime information is wrong in the concurrent executor (#19849)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-11 14:14:37 +08:00
0fc03a9f71 session: use new PD TS as forUpdateTS on pessimistic write conflict (#19916)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-09-10 16:35:20 +08:00
47270445d9 server: fix the missing detachment for the mem/disk tracker (#19794) 2020-09-08 10:48:51 +08:00
915d84d7ad executor: add pessimistic lock keys runtime information (#19547)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 20:46:31 +08:00
5d3cdf5d17 *: add execution retry time in slow log and slow_query and statement_summary (#19625)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 11:16:52 +08:00
db3c96b3ff executor: add transaction commit runtime information in slow log (#19366) 2020-08-27 16:18:47 +08:00
253d43fb51 *: add execution retry count in slow log and slow_query (#19487) 2020-08-27 14:18:06 +08:00
9620b710a0 executor: fix log desensitization bug in prestmt (#19392) 2020-08-24 17:31:51 +08:00
1905ea0f55 executor: reduce log spam on pessimistic conflict (#18365)
Fixes #18255

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-30 11:27:03 +08:00
297acf7e82 log: add tidb_log_desensitization global variable to control whether do desensitization when log query (#18578)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-07-15 15:44:56 +08:00
b193db8b49 planner: ban tiflash engine when the statement is not read only (#18458)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-14 11:43:48 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
5405fcc4c3 add conn id into ctx (#18158)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-22 13:57:51 +08:00
dfca52cb0b executor: remove sensitive information in slow-log and statement (#18107) 2020-06-19 16:30:17 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
405a5d009d sessionctx: add optimization-time and wait-TS-time into the slow log (#17869) 2020-06-10 10:41:50 +08:00
0ec197fae0 sessionctx: add some information about the rewriting phase into the slow log (#17569) 2020-06-09 13:49:42 +08:00
35e2d3a081 *: add global variable tidb_slow_log_masking to control masking slow log query (#17637) 2020-06-05 09:15:41 +08:00
2c55650617 *: make QPS more realistic (#17560) 2020-06-04 20:00:43 +08:00
55d9d6ca1e sessionctx,infoschema,executor,util: Show disk usage of a query in slow query and statement summary (#17132) 2020-05-26 22:03:40 +08:00
f72b5984dd executor: set the DDL query string instead of execute (#17407) 2020-05-26 15:48:13 +08:00
72a789a247 planner, infoschema : add columns about plan cache in 'performance_schema.events_statements_summary_by_digest' (#16476) 2020-05-26 13:10:02 +08:00
3f2d35a60b RFC + executor: Support global memory tracker (#16777) 2020-05-13 15:49:53 +08:00
cfec13772b sessionctx: record if a query hits plan cache in slow log (#17088) 2020-05-12 15:49:05 +08:00
7facf07f2e infoschema: fix exec_count of prepared statements in statement summary (#17064) 2020-05-11 14:54:05 +08:00
fcfedb77fc executor: bootstrap SQLs are not treated as internal queries in statement summary (#17024) 2020-05-09 16:01:35 +08:00
b32e834a8d server: let select for update could be recorded for slow log and statements (#16743) 2020-04-28 12:11:56 +08:00
7106b189df session: refine record execution duration metric (#16453) 2020-04-17 21:50:28 +08:00
1f24b9e03b executor, infoschema, util: add sum_errors and sum_warnings to statement summary tables (#16456) 2020-04-17 10:31:35 +08:00
3edfffa84b Util: Fix global tracker mutex contention (#16298) 2020-04-15 20:37:42 +08:00
b1d11a7091 *: rename statement summary tables (#16188) 2020-04-15 15:30:32 +08:00
d8978cb53e config: support temporary storage usage limitation (#15700) 2020-04-08 22:14:09 +08:00
5137cbc2b1 executor: do not log slow query for pessimistic write conflict retry (#15890) 2020-03-31 22:42:41 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
248be5bba5 planner: push down Lock to PointGet and BatchPointGet (#15257) 2020-03-11 13:58:32 +08:00
9905a26ea0 txn: fix UpdateForUpdateTS for non autocommit pessimistic mode (#15244) 2020-03-10 17:11:39 +08:00
353a6e02e9 metrics: add new transaction metrics to grafana script (#15236) 2020-03-10 15:46:03 +08:00
2d5d2fde27 *: fix the same future wait twice in RC transaction (#15117) 2020-03-06 00:05:54 +08:00
6b0972957c config: change enable-slow-log to boolean (#14864) 2020-02-20 15:37:32 +08:00
5c4f457580 executor: remove dead code about Cacheable function call (#14740) 2020-02-12 22:05:11 +08:00
d20195a3a5 server: add counter for keys locking numbers (#14625) 2020-02-05 10:24:53 +08:00
7ba002e836 executor, util: improve concurrency of statement summary (#14490) 2020-02-04 17:32:24 +08:00
c562ab4734 metrics: add statement pessimistic retry count (#14527) 2020-02-04 14:19:23 +08:00
1f997a5528 metrics: add statement deadlock detect duration (#14444) 2020-01-15 17:41:21 +08:00
562a448b7d session,executor: fix transaction lazy initialization in pessimistic mode (#14446) 2020-01-14 16:48:05 +08:00
40a6be1a82 bindinfo: handle statement hints in bindings (#14248) 2020-01-07 14:18:46 +08:00
fd3ada61ca infoschema: add plan field to the statement summary tables (#14182) 2019-12-26 15:04:39 +08:00
1335ffb6b7 *: support read consistency isolation level in the pessimistic transactions (#14087) 2019-12-24 21:24:39 +08:00
f0d313470f executor: record lockkeys waited flag and duration in stmtctx (#14209) 2019-12-24 20:24:12 +08:00
11c3b25ba2 executor: fix missing cached execution counter for point select (#14163) 2019-12-20 19:35:49 +08:00