Commit Graph

152 Commits

Author SHA1 Message Date
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
9d38c5467a *: use 8 byte MysqlTime format (#14278) 2020-01-31 14:49:06 +08:00
07e642c923 coprocessor: add ddl schema version in request (#14317) 2020-01-08 16:29:10 +08:00
ba2ff85c58 *: support caching coprocessor responses (#13824) 2019-12-31 18:24:40 +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
72cd3f2032 executor: add back metrics for select_result.go:fetchResp() (#13975) 2019-12-10 16:10:55 +08:00
a7d5b98306 *: Move StartTs from DAGRequest to Coprocessor.Request (#13823) 2019-12-03 17:13:12 +08:00
8fab2548d0 executor: show operators' disk consumption in results of EXPLAIN ANALYZE (#13764) 2019-12-02 17:04:29 +08:00
134b80cdf4 distsql: Unify endian for Chunk encode format (#13349) 2019-11-27 17:15:25 +08:00
e4bdb7b229 executor: show max-proc-keys and p95-proc-keys in results of explain analyze (#13692) 2019-11-27 15:00:26 +08:00
e2c8c17e92 *:fix staticcheck errors in folder distsql and domain (#13668) 2019-11-26 10:08:31 +08:00
e8cd6a63ac executor: remove useless channel and fetch directly from copIterator (#13274) 2019-11-19 11:50:23 +08:00
538077ff75 *: rename Arrow to Chunk (#13060) 2019-11-06 14:51:10 +08:00
e43444265b *: Support required rows rows for arrow decode format. (#12613) 2019-11-05 18:12:09 +08:00
b80b417803 *: fix rolling_update_fail when using Arrow format. (#12899) 2019-10-31 14:16:23 +08:00
4c27856b9a *: add a flag EncodeType for response to use Arrow/Default format to decode. (#12536) 2019-10-09 20:50:37 +08:00
99a5432dce *: encode the returned data using the Chunk format in mocktikv (#12023) 2019-09-28 20:02:26 +08:00
095bee9655 executor: support table reader executor read from tiflash. (#12371) 2019-09-27 15:31:04 +08:00
e173c7f5c1 executor: add several sql hint related to session variables (#11809) 2019-09-17 13:39:16 +08:00
39e9c9fd7a *: add max/avg cop response time for TableReader, IndexReader and IndexLookupReader. (#12003) 2019-09-11 20:36:45 +08:00
ef104a89b8 distsql: merge executioin detail in stream cop (#11938) 2019-09-02 11:41:05 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
1f57a538a4 distsql: make CopStream available (#11311)
All tests passed, auto merged by Bot
2019-07-30 17:10:52 +08:00
1ad073bf80 executor: show operators' memory consumption in results of EXPLAIN ANALYZE (#11334) 2019-07-24 10:53:02 +08:00
fc6baf2834 distsql: clean the memory usage of MemTracker when a query end… (#10898) 2019-06-27 19:38:39 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
ebfb2ae7fe distsql: improve package distsql test code coverage to 85% (#10582) 2019-05-31 17:21:29 +08:00
9b62c5a3e8 distsql: tiny refactor to make the code more robust (#10557) 2019-05-21 18:17:10 +08:00
78594431f9 executor: handle OOM panic which not be recovered now in distSQL layer 2019-05-20 19:46:34 +08:00
7d7c146786 *: fix bug when unsigned histogram meets signed ranges in feedback (#10415) 2019-05-14 15:49:02 +08:00
d6396daa77 *: lazy eval explain id and tracker label (#10139) 2019-04-22 14:23:33 +08:00
e5f734e54c *: move the Handle of stats to single package. (#10149) 2019-04-17 13:42:34 +08:00
7447f04409 executor: trace and control memory usage in DistSQL layer (#10003) 2019-04-12 16:43:55 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
b78490e403 *: use the unified log format for the remaining packages (#9743) 2019-03-22 16:34:47 +08:00
40fa006cac *: collect coprocessor runtime stats for explain analyze (#9057) 2019-02-19 16:22:00 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
65066c8d1e Control the number of rows in chunks returned by SelectResult (#9293) 2019-02-14 11:48:01 +08:00
82d2726300 planner, statistics: build new histogram using range information (#7921) 2019-01-14 20:33:36 +08:00
351c4a5568 *: refine commit txn slow log (#8731) 2018-12-25 20:49:50 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
8c44f562f5 metrics: add different labels for restricted SQL and general SQL (#7631)
The newly added label is `sql_type`, it has value: `general` and `internal`,
users can use this label to filter metrics they have interest.

Also, add keyword `[INTERNAL]` for restricted SQL printed in slow log for
convenient identification.
2018-09-07 14:23:48 +08:00
2b776ac495 *: remove goroutine pool (#7564)
goroutine pool was introduced to handle stack copy cost, Go1.11 has 
many optimizations for stack copy, after upgrading to Go1.1, goroutine
pool is not necessary any more.
2018-08-31 11:23:14 +08:00
1d0d0a6666 distsql: let analyze use RC level and low priority (#7496) 2018-08-27 18:46:51 +08:00