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
8adac8fe6c
*: set low priority for expensive SQL and high priority for point get ( #3881 )
2017-08-02 13:53:36 +08:00
53b27dd3ec
tidb/config: Extract the configuration as a package and add two configurations for tidb ( #3919 )
...
add the ability to configure the slow query threshold and max log length
2017-07-28 17:01:22 +08:00
b3c43e52ca
*: retry commit for prepared statement when schema change ( #3297 )
2017-05-21 10:42:10 +08:00
c5e864539f
executor: fix some bugs about new plan. ( #3231 )
2017-05-10 16:32:00 +08:00
ad52a2462c
executor: add open inteferce for Executor. ( #3221 )
2017-05-09 21:13:22 +08:00
20be357e86
expression: fix buildin function found_rows() ( #3134 )
...
fix issue #3131 .
2017-05-02 11:40:10 +08:00
858d76bbe3
executor: fixed comments warning. ( #3187 )
2017-05-01 19:19:32 +08:00
09a8c1bd7a
*: tiny refact move SetProcessInfo ( #2790 )
2017-03-07 14:48:38 +08:00
87d39986fe
*: show processlist ( #2744 )
2017-03-01 14:39:13 +08:00
6859d121b9
txn:improvement for point get by unique key or pk ( #2631 )
2017-02-20 22:39:36 +08:00
0d9744261b
*: slow log and metrics includes execute prepared statement. ( #2512 )
...
Execute prepared statement was ignored in slow query log and query metrics.
2017-01-21 10:06:55 +08:00
2828e29a5b
executor: refine statement count metrics ( #2477 )
2017-01-16 12:34:21 +08:00
36e9570051
*: concurrently begin a transaction and compile ( #2393 )
2017-01-05 15:00:43 +08:00
5f96f67cbc
*: change schema from []*Column to struct ( #2321 )
2016-12-27 14:02:19 +08:00
64484a4257
*: refactor context.Context ( #2298 )
...
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
0adabe53a1
*: begin a transaction in PrepareTxnCtx, unify in transaction. ( #2290 )
...
Transaction should has the same life cycle as TxnCtx, so create a
new transaction in PrepareTxnCtx if transaction is nil or invalid.
2016-12-21 16:48:19 +08:00
0af8520a78
sessionctx/variable: remove dependency on context package. ( #2064 )
...
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
7ddb150920
executor: add more statements for metric of statement counter ( #1967 )
2016-11-15 14:34:15 +08:00
421ceeb8fa
*: make golint happy.
2016-11-15 11:12:24 +08:00
cbf024e8f7
*: clean code. ( #1987 )
2016-11-10 15:38:22 +08:00
1550e76e6c
executor: add comments in executor package. ( #1876 )
...
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
ade11fe9f4
*: support history read. ( #1734 )
...
* *: support history read.
This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
ed4649e85d
*: Support load data local ( #1634 )
2016-08-30 09:38:37 +08:00
27ae3a2f98
*: Cleanup UseNewPlanner ( #1614 )
2016-08-21 21:20:06 +08:00
1a10e4737a
fix bug of interpreter. ( #1473 )
2016-07-19 19:26:17 +08:00
c72917d6e8
support cast and change the name of expression select field. ( #1373 )
2016-07-04 14:27:07 +08:00
a71005710f
plan: merge 'optimizer/plan' and 'optimizer' into one package. ( #1300 )
2016-06-07 20:49:05 +08:00
10359b0052
rewrite executor. ( #1294 )
...
* rewrite executor.
2016-06-07 20:32:15 +08:00
f3a0f1af78
executor: fix adapter statement. ( #1292 )
...
Implements `OrgionText`, 'SetText` and 'IsDDL`.
2016-06-06 11:35:07 +08:00
3671f3958f
xapi: support IN expression push down. ( #1147 )
...
* xapi: support IN expression push down.
2016-04-25 19:50:33 +08:00
3b25069f84
evaluator: avoid evaluate independent subquery multiple times. ( #1144 )
...
* evaluator: avoid evaluate independent subquery multiple times.
* ast: rename UseOuterContext to Correlated.
2016-04-22 12:51:18 +08:00
041dfd97c1
executor: evaluate subquery before executing outer query. ( #1133 )
...
* executor: evaluate subquery before executing outer query.
So outer query can push down subquery values.
* evaluator: extract a function to evaluate subquery.
* evaluator: add comments on exported function.
2016-04-21 21:51:39 +08:00