Commit Graph

51 Commits

Author SHA1 Message Date
ccaefa2a3d executor: add CTEExec and CTETableReaderExec (#24809) 2021-06-01 11:59:37 +08:00
39bd181213 *: Upgrade to go 1.16 && remove deprecated io/ioutil (#24527) 2021-05-25 12:07:34 +08:00
33c82d1371 util: fix err check (#23009) 2021-03-03 21:48:55 +08:00
35534ae752 *: apply golangci-lint to the new code (#22824) 2021-02-24 18:24:03 +08:00
dad3b5e87d util: add cache for mem info in container (#22109) 2020-12-30 22:13:13 +08:00
32d19b78e1 *: refine runtime stats display and tiny bug fix for metrics (#21022)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-26 16:35:25 +08:00
af58658b63 *: implement priority control for OOM Action (#21170) 2020-11-25 19:44:26 +08:00
eca1ce192b util: fix wrong calculation to get memory usage. (#21158) 2020-11-20 11:14:23 +08:00
0c3b17138a util: support getting the environment memory in container. (#20805) 2020-11-11 17:49:26 +08:00
abc8f1665f *: optimize for encoding huge plan (#20811) 2020-11-06 10:46:16 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
0ed9f4d050 executor: tiny optimize slow_query performance and add related runtime stats (#20200) 2020-10-13 14:06:09 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
2f2c57ecc8 executor, util: fix TestGlobalMemoryTrackerOnCleanUp ci error (#19863) 2020-09-08 18:15:46 +08:00
47270445d9 server: fix the missing detachment for the mem/disk tracker (#19794) 2020-09-08 10:48:51 +08:00
a2e2ce6339 *: use int instead of fmt.Stringer as executor id (#19207) 2020-08-19 13:39:31 +08:00
af685f511f Revert "coprocessor: Exceed action for copiterator (#17324)" (#18706) 2020-07-21 15:21:20 +08:00
b178de06ad executor: Trace the memory usage of AggFunc in HashAggExec (#18257) 2020-07-06 20:48:41 +08:00
a9177fe846 util/memory: avoid potential deadlock for Consume in remove (#16987) 2020-07-06 19:28:12 +08:00
a5829ae5e6 coprocessor: Exceed action for copiterator (#17324) 2020-07-06 18:57:29 +08:00
9d9f330a4b executor, util: fix spilling disk when oom. (#16895) 2020-06-30 16:32:14 +08:00
3f2d35a60b RFC + executor: Support global memory tracker (#16777) 2020-05-13 15:49:53 +08:00
3edfffa84b Util: Fix global tracker mutex contention (#16298) 2020-04-15 20:37:42 +08:00
d8978cb53e config: support temporary storage usage limitation (#15700) 2020-04-08 22:14:09 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
34bb3e51b6 util: wrong memory count when use Tracker.ReplaceChild() (#14513) 2020-01-19 15:01:32 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
5a589c9994 planner: consider disk cost in hashJoin (#13246) 2019-12-03 13:43:19 +08:00
49ad436156 util: format error code for memory package (#13540) 2019-11-22 11:12:37 +08:00
1f922559df executor: implement disk-based hash join (#12067) 2019-09-24 23:23:05 +08:00
e173c7f5c1 executor: add several sql hint related to session variables (#11809) 2019-09-17 13:39:16 +08:00
c1e6b8d777 executor: utilities for disk-based hash join (#12116) 2019-09-11 17:38:15 +08:00
1ad073bf80 executor: show operators' memory consumption in results of EXPLAIN ANALYZE (#11334) 2019-07-24 10:53:02 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
b0d6c5b35b *: print an expensive query log when a query is out of memQuota (#10799) 2019-06-18 16:18:48 +08:00
f67352d238 *: print an expensive log when a query exceeds time threshold (#10350) 2019-06-05 20:38:11 +08:00
d6396daa77 *: lazy eval explain id and tracker label (#10139) 2019-04-22 14:23:33 +08:00
f834e5d56f executor: show memory consumption in slow query log (#10162) 2019-04-18 15:16:44 +08:00
eedbc8ddc4 executor: replace Lock operations in MemTracker.Consume with atomic operations to improve performance (#10005) 2019-04-03 19:08:01 +08:00
32fdf46b1f util: use uniform log format for util package (#9668) 2019-03-22 10:33:03 +08:00
52c8267a73 *: tiny refactor, more go idiom (#9660) 2019-03-12 14:12:56 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
84d1299bb2 config, util.kvcache: support the memory guard to prevent OOM for the plan cache (#8339) 2018-11-22 22:05:04 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
9fc67b9a9f store TiDB server info to PD and add http api handle (#7082) 2018-08-15 12:51:00 +08:00
936d7b7d29 executor, memory: detach from parent when executor is closed (#6148) 2018-03-28 15:52:34 +08:00
0a70557cea memory: fix data race on concurrent access of Tracker.children (#6108) 2018-03-22 00:26:49 +08:00