Commit Graph

59 Commits

Author SHA1 Message Date
40fa006cac *: collect coprocessor runtime stats for explain analyze (#9057) 2019-02-19 16:22:00 +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
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
b1bc4209ca distsql: move SelectResult to file "select_result.go" (#7054) 2018-07-16 15:21:14 +08:00
357d5df66b remove useless alias (#6473) 2018-05-05 22:36:54 +08:00
5da8ac0957 *: make session variables control TiKV layer. (#6322)
And add a system variable `tidb_backoff_lock_fast` to change the backoff base time on read lock.
2018-04-20 16:06:34 +08:00
bfb6ec2ae8 distsql: remove unused code (#6227) 2018-04-04 23:19:57 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
c398110154 *: improve performance of DecodeBytes in DecodeOneToChunk (#6135) 2018-03-29 19:11:44 +08:00
6f43b37572 Add admin checksum table command (#6067) 2018-03-20 20:46:43 +08:00
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
6a826fd0aa *: collect query feedback (#5909) 2018-03-12 15:37:09 +08:00
8f0477dad5 executor,distsql: Add a test that check coprocessor streaming flag (#5973) 2018-03-07 20:42:13 -06:00
9a3463fd81 distsql, mocktikv: handle warnings returned from tikv/mocktikv (#5906) 2018-03-06 13:20:27 +08:00
12a1a254fc config,distsql: add config for coprocessor streaming feature (#5917) 2018-02-28 21:36:22 -06:00
816c764cb5 *: change the interface for kv.Response (#5914) 2018-02-27 23:06:25 +08:00
8268d4d8b4 *: move irrelevant code out of package "distsql" (#5893) 2018-02-24 18:52:09 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
6e33a6a081 distsql, executor: rename "SelectDAG" to "Select" (#5887) 2018-02-22 10:57:40 +08:00
23bff274a0 distsql, metrics: refine distsql metrics. (#5774)
Refine distsql metrics && Add scan keys metrics.
2018-02-02 21:53:22 +08:00
307e642565 store/tikv: remove WithCancel in copIterator. (#5701)
Since we already have `finished` channel to make the worker exit, we don't need to select
on `ctx.Done`, instead, we can only select `ctx.Done` in `Next`, and close the `finished` channel.

This avoid the cost to create context by `WithCancel` and select on extra channel.
2018-01-23 17:56:13 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
3e3b633963 distsql: let the coprocessor streaming API use StreamResponse (#5389) 2018-01-03 14:12:20 +08:00
90401445d2 *: collect and store query feedback (#5438) 2017-12-22 11:33:05 +08:00
a2fb741191 *: Chunk add context parameter (#5348) 2017-12-09 11:23:40 +08:00
69c9e4efe4 *: limit chunk size to MaxChunkSize (#5252) 2017-11-28 21:05:30 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
a32b8dbcf6 *: use Chunk for TableReader. (#5142) 2017-11-21 10:08:50 +08:00
c3d0f21c2e *: distsql use goroutine pool (#5009) 2017-11-05 09:30:33 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
0616a2fd15 executor, distsql: remove useless code. (#4991) 2017-11-02 19:40:59 +08:00
2339a703d8 *: remove useless code in executor. (#4982) 2017-11-02 15:48:59 +08:00
5c6fa44965 distsql: use utf8_bin for unsupported column collation. (#4939) 2017-10-29 22:24:46 -05:00
d1d78b726b executor: analyze use NewSelectResult (#4667) 2017-09-28 13:07:35 +08:00
0fd5b5167e *: change the way transfer handle. (#4348) 2017-09-27 03:47:07 -05:00
5200745d6a distsql,store/tikv: SelectDAG function parameter refactor (#4645)
* distsql,store/tikv: SelectDAG function parameter refactor

1. move some distsql.SelectDAG parameter to kv.Request struct
2. modify tikv.RPCContext struct, remove kvrpcpb.Context in it
3. let tikvrpc.Request struct share Context with its subcommand request
2017-09-27 12:33:05 +08:00
040ad180aa *: use goroutine pool to avoid runtime.morestack (#3753) 2017-09-22 11:43:39 +08:00
f9e48cba46 store/tikv: abort an unsafe transaction subject to gc command (#4469) 2017-09-21 14:03:09 +08:00
504a3c4a56 distsql: prework for analyze pushdown (#4471) 2017-09-08 11:32:04 +08:00
8adac8fe6c *: set low priority for expensive SQL and high priority for point get (#3881) 2017-08-02 13:53:36 +08:00
584a0c32dc model, distsql: add unit tests (exclude distsql/xeval) (#3806) 2017-07-20 23:16:20 +08:00
d8aaa222c8 *: make SET TRANSACTION ISOLATION LEVEL READ COMMITTED take effect (#3619) 2017-07-17 19:16:23 +08:00
350c79382a *: support new table reader executor. (#3133) 2017-04-27 13:27:26 +08:00
aa8298ef6e distsql: return zeroLenData if data length is nil. (#2965)
TiKV doesn't return RowsData when RowsData length is 0, so we sliced a nil data when
data length is zero.
This can only be reproduced on TiKV, so no unit test is added.
2017-03-30 15:54:27 +08:00
78f7eab61d *: refactor distsql and executor. (#2942) 2017-03-29 15:20:25 +08:00
0783456c78 *: do not use bytespool to allocate coprocessor response. (#2891) 2017-03-22 00:00:00 +08:00