2828e29a5b
executor: refine statement count metrics ( #2477 )
2017-01-16 12:34:21 +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
c24c90b4d3
tidb, variable: refactor retry, add TransactionContext ( #2256 )
2016-12-16 11:07:59 +08:00
d406c77c1f
Revert "tidb, variable: refactor retry, add TransactionContext" ( #2255 )
2016-12-15 10:42:04 +08:00
ff0ceb1785
tidb, variable: refactor retry, add TransactionContext ( #2254 )
2016-12-15 10:35:57 +08:00
5230f5eabd
variable: define StatementContext. ( #2121 )
...
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +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
1f1a60c02a
*: improve log ( #1944 )
...
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
1550e76e6c
executor: add comments in executor package. ( #1876 )
...
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
a33240d8a8
parser: set flag in parse function. ( #1799 )
...
Every `ast.Statement` needs to set flag before use, set the flag in parse function,
so we don't need to set it somewhere else and won't forget to do it.
2016-10-09 11:36:56 +08:00
93e6796d2b
*: support history read with old schema ( #1790 )
...
When user set 'tidb_snapshot' variable, load and use the schema at the snapshot time.
2016-10-08 19:54:48 +08:00
f751336f70
executor: add metric for statement counter ( #1755 )
2016-09-26 13:09:28 +08:00
50fa99ad60
server: add metrics for duration of each session execute stage ( #1751 )
2016-09-23 14:42:29 +08:00
1dd9e89eb0
*: write binlog to unix socket. ( #1660 )
...
support write binlog to a unix socket through grpc.
2016-09-21 13:09:03 +08:00
e4ac5301ce
remove useless code. ( #1609 )
2016-08-20 16:00:20 +08:00
13910f108c
ddl: fix ddl update join table. ( #1426 )
2016-07-12 12:52:18 +08:00
cad94acb54
Store row data in single kv pair ( #1347 )
2016-06-28 11:15:09 +08:00
921677399e
Hanfei/apply ( #1318 )
...
add apply operator.
2016-06-15 15:23:05 +08:00
a71005710f
plan: merge 'optimizer/plan' and 'optimizer' into one package. ( #1300 )
2016-06-07 20:49:05 +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
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
b5fbabc05e
*: Remove plan.go/stmt.go/rset.go
...
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
68eb8e567e
*: remove old code
2016-02-29 11:40:32 +08:00
64912c8597
*: Implement perfschema with MemoryTable
2016-02-29 10:28:30 +08:00
a4503d3514
*: Address comment
2016-02-02 10:19:47 +08:00
7dc4196837
*: Support subquery in new plan
2016-02-01 08:47:23 +08:00
dd5e520157
*: Refactor new plan work flow
2016-01-11 17:22:51 +08:00
9b17f3f319
executor: clean up.
2016-01-02 10:44:13 +08:00
3b926794f6
executor: fix build
2015-12-18 19:59:18 +08:00
c5fae25a60
optimizer: validates '?' is not allowed in non-prepare mode.
2015-12-18 19:40:45 +08:00
dcdb32dbde
plan. executor: support prepared statement.
2015-12-18 16:56:08 +08:00
429716fc37
optimizer, executor: address comment.
2015-12-07 16:16:34 +08:00
f3e62b87ec
optimizer: add static evaluator and range builder.
2015-11-24 20:44:12 +08:00
96ff5b0e25
executor: use index.
2015-11-24 14:16:27 +08:00
dc5565eb33
executor: use new plan for basic select.
2015-11-16 21:55:26 +08:00
69dc388d65
optimizer: define what kind of statement is supported to use new plan.
2015-11-16 13:24:15 +08:00
c01af56fc3
executor, optimizer: new executor and optimizer implementation
2015-11-13 23:24:10 +08:00