Commit Graph

97 Commits

Author SHA1 Message Date
530aa9519d executor: refine log information about slow queries (#6343) 2018-04-26 00:48:25 +08:00
fb8efa5596 *: clean up code for set SQL statement priority, let it bypass plan (#6328) 2018-04-21 08:58:24 -05:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
a90ecea7dd executor: remove some remained unused functions for removing Executor.Next (#6112) 2018-03-22 21:34:52 +08:00
a3bf058304 *: 1. remove EnableChunk 2. implement Next in baseExecutor to return nil (#5988) 2018-03-09 17:40:11 +08:00
913db283ea *: remove SupportChunk() from interface ResultSet and RecordSet (#5969) 2018-03-07 19:36:15 +08:00
50e98f427e config: add validation for configuration (#5864) 2018-03-06 14:56:28 +08:00
04b504ee19 executor: remove supportChunk from interface Executor (#5942) 2018-03-05 10:45:59 +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
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
08720d01f9 executor: add more comments (#5728) 2018-02-08 19:55:59 -06:00
47cbc0bfce *: remove varsutil package, make Systems a private member of SessionVars (#5544) 2018-01-25 01:43:07 -06:00
225d69053e executor: avoid unnecessary log format in slow query log (#5696) 2018-01-23 11:28:21 +08:00
3ce567630b executor: store column's fieldType in executor (#5619) 2018-01-12 16:57:31 +08:00
f8a2c807fd executor: support Chunk for ExecuteExec (#5410) 2018-01-11 18:38:12 +08:00
4136b81c23 *: merge IntColumnRange with NewRange. (#5591) 2018-01-10 15:50:58 +08:00
93b52805c3 ast, executor: set Fields for SelectStmt in PrepareExec (#5504) 2017-12-27 17:16:49 +08:00
855df184e1 executor: support Chunk for TableDualExec (#5395) 2017-12-22 16:37:21 +08:00
ec1b40d5b3 executor: Close() executors when Open() returns an error to avoid goroutine leak (#5469) 2017-12-22 12:38:07 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
6ee266d0ca executor: UpdateExec support NextChunk (#5372) 2017-12-14 15:32:06 +08:00
a2fb741191 *: Chunk add context parameter (#5348) 2017-12-09 11:23:40 +08:00
38f794d875 plan, executor: add physical proj and topn. (#5316) 2017-12-06 13:30:58 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
af4e73c43a tidb: always rebuild plan for retry. (#5218)
Fixes a bug that results in index and record inconsistency.

We build UnionScan based on if transaction is dirty, but this is a runtime property, may change during retry.

To simplify the logic and avoid potential bug, always rebuild the plan for retrying statements.
2017-11-25 09:50:32 +08:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
a32b8dbcf6 *: use Chunk for TableReader. (#5142) 2017-11-21 10:08:50 +08:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
1ef93dc274 executor: Add debug logs (#5083) 2017-11-13 21:19:08 +08:00
cedc35ca8c executor: add default database to query log (#5078) 2017-11-12 21:26:56 -06:00
ec9d1f0cc6 *: simplify RecordSet.Fields. (#5068) 2017-11-12 12:07:18 +08:00
49f2a908a6 remove read-only statement from transaction auto retry (#5026)
* *: Ignore readonly statement when retrying

* remove explain statement from retry
* remove all select statement from retry except It has setvar functions
* remove execute statement from retry if it is read-only statement
2017-11-08 19:03:05 +08:00
d122f5826c tidb-server,executor: add command option and log success/fail for slow-query (#4934) 2017-10-30 11:49:08 +08:00
7afae3f89c *: support write slow query log into seperate files (#4804) 2017-10-20 14:22:10 +08:00
21c21973c0 executor: make slow-query log more terminal friendly (#4764) 2017-10-16 06:03:03 -05:00
a34964a36a *: improve the column info for client (#4770)
Add table/database info in the response message.
2017-10-15 08:27:13 -05:00
d88344f869 plan, tidb: support plan cache for SELECT statement (#4644) 2017-10-11 22:34:04 -05:00
3e1d036336 *: log the caller of "terror.Log()" (#4729) 2017-10-10 11:26:43 +08:00
eb8df3519a *: prepare to enforce errcheck, part1 (#4670) 2017-09-30 16:23:37 +08:00
407719e79b executor: change to structured slow log for friendly JSON output (#4657) 2017-09-29 18:19:23 +08:00
e3ab386874 *: revert 4669 "make prepare stmt retriable when schema is out-dated" (#4676)
* Revert "executor: analyze use NewSelectResult (#4667)"

This reverts commit d1d78b726ba6ba4c79d38ce95252fc41753db02e.

* Revert "table: Speed up the add index operation (#4632)"

This reverts commit d782ce103eea7680f289f6a35576dc9349bb0bb4.

* Revert "*: make prepare stmt retriable when schema is out-dated. (#4669)"

This reverts commit 3dfbf52e64cc0af6039758d169bf133b965f5584.
2017-09-28 16:19:53 +08:00
3dfbf52e64 *: make prepare stmt retriable when schema is out-dated. (#4669) 2017-09-28 10:41:22 +08:00
97242d362a config: add config file support. (#4509) 2017-09-14 19:38:49 +08:00
3428d80577 *: hide secure information in SHOW PROCESSLIST (#4451) 2017-09-12 01:40:21 -05:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
21a417ad65 executor: make auto analyze more conservative (#4284) 2017-08-24 20:25:50 +08:00
7c273c0f29 *: implement auto analyze (#4141) 2017-08-18 18:42:28 +08:00
678c6924be *: support priority for SELECT HIGH_PRIORITY statement (#4119)
*: support priority for SELECT HIGH_PRIORITY statement
2017-08-10 01:09:57 -05:00
c7c248eb91 executor: change struct row to []types.Datum (#4072) 2017-08-09 18:37:57 +08:00