Commit Graph

89 Commits

Author SHA1 Message Date
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
ccaefa2a3d executor: add CTEExec and CTETableReaderExec (#24809) 2021-06-01 11:59:37 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
e9488ce2ee *: implement tidb_bounded_staleness built-in function (#24328) 2021-05-18 14:15:40 +08:00
fa39b79006 store/tikv: remove execdetails dependency (#24119) 2021-04-20 13:41:52 +08:00
69675ead57 store/tikv: move CommitDetails and LockDetails to tikv/util (#23854)
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-09 20:56:24 +08:00
5715eefd2b *: Add the metric about the SQL with TiFlash Success (#23426) 2021-03-24 22:15:37 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
e3108df576 planner: do not cache prepared plan if optimization depends on mutable constant (#22349) 2021-01-12 11:11:59 +08:00
fe9d3161fa executor: store correct plan hint in statements_summary when log level is 'debug' (#22219) 2021-01-08 14:03:10 +08:00
8144e1395d *:Adapt ScanDetailV2 in KvGet and KvBatchGet Response (#21562) 2020-12-30 17:02:44 +08:00
0735a0c924 executor: fix insert ignore into not exists partition (#21904)
Signed-off-by: lysu <sulifx@gmail.com>
2020-12-23 17:19:29 +08:00
7b76edcfe1 *: support baseline capture for prepared statements (#21271) 2020-12-22 16:21:59 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
6fb60a3272 ddl: fix create list partition bug and add more test (#21398) 2020-12-02 15:21:08 +08:00
4caa23e8d2 session: add encoded plan cache to avoid repeated encode plan when recording slow-log and statement (#21139) 2020-11-23 15:30:27 +08:00
ae5dc3f69a executor: fix issue of load data statement doesn't record into slow query and statements_summary (#20713)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-04 16:27:01 +08:00
b2e6df07c8 session: Support Variable-Setting Hint SET_VAR (#20232) 2020-10-28 14:27:13 +08:00
70317615f3 executor: TPCH q20 hangs forever when running in TiKV + TiFlash mode (#20600) 2020-10-23 12:33:34 +08:00
c808997d25 store, util: adapt scandetailv2 in coprocessor response (#20391) 2020-10-16 14:25:57 +08:00
fdcc19eb11 sessionctx: fix a bug where update stmt not considered when clipping negative num to 0 (#19605) 2020-09-03 20:16:17 +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
2d54976495 *: convert lockKeys to key flag (#18966)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-07 10:23:59 +08:00
574540aa06 fix pessimistic check (#19004)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 14:00:43 +08:00
b363937744 transaction: fix union select for update race (#19006)
* transaction: fix LockKeys race

* do not update delta for lock keys

* fix more race

* fix another race

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 09:24:17 +08:00
dce0e45bdf planner, add hint nth_plan(x) to help user force a plan (#17850) 2020-07-01 15:34:22 +08:00
ad598e431a executor: add the cache for apply executor (#17039) 2020-06-17 21:24:12 +08:00
526a711c67 session, tikv: allocate task IDs for distsql requests (#16520) 2020-05-13 11:47:05 +08:00
d3074e9bc7 stmtctx: add TruncateWarnings (#17139) 2020-05-12 20:03:35 +08:00
8ea2ed03e7 session: Move OptimizerUseInvisibleIndexes from SmtmCtx to SessionVars (#17040) 2020-05-09 08:41:05 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00
3a07cf7fcc executer: add Cop_time in slow log (#16873) 2020-04-28 15:08:09 +08:00
cfd875219e planner: invalidate cached plan if no UnionScan for tables that need it (#15429) 2020-04-01 16:05:36 +08:00
0b3597f73a stmtsummary: cache digest for prepared stmt and cached plan (#15448) 2020-03-18 14:40:54 +08:00
af861eeba2 planner: support hint USE_CASCADES(true|false) to use/disuse cascades planner in a single query (#15352) 2020-03-16 19:35:24 +08:00
8e10e90e31 *: add config diagnose and fix warning (#15107) 2020-03-04 16:58:46 +08:00
d20195a3a5 server: add counter for keys locking numbers (#14625) 2020-02-05 10:24:53 +08:00
40a6be1a82 bindinfo: handle statement hints in bindings (#14248) 2020-01-07 14:18:46 +08:00
8ab14c138f executor: add lockkeys duration in slow log (#14210) 2019-12-24 21:52:09 +08:00
f0d313470f executor: record lockkeys waited flag and duration in stmtctx (#14209) 2019-12-24 20:24:12 +08:00
ef7adeb50d *: resort fields for reducing the memory allocated (#14172) 2019-12-23 17:10:09 +08:00
352adc5b00 executor: replace the flag CastStrToIntStrict with InSelectStmt (#14115) 2019-12-18 20:45:17 +08:00
438d39ebcd *: revert #10124 and remove sql mode PadCharToFullLength (#14007) 2019-12-17 15:25:06 +08:00
1bcf267655 infoschema: add plan digest to slow log and slow_query (#14000) 2019-12-12 11:49:00 +08:00
01a7d00053 executor: change pessimistic lock wait start for one statement (#13922) 2019-12-06 15:17:49 +08:00
78e3c4d885 extract hot system variables from map (#13810) 2019-12-05 10:32:39 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
1de8569bce executor: show back-off details in slow log (#13770) 2019-12-03 06:42:32 -06:00
8fab2548d0 executor: show operators' disk consumption in results of EXPLAIN ANALYZE (#13764) 2019-12-02 17:04:29 +08:00