560e8cfe57
*: sleep 0 when retry whole transaction ( #9454 )
2019-03-02 13:16:28 +08:00
357f9d7363
metrics: add db QPS metric ( #9151 )
2019-02-13 19:17:44 +08:00
f522de2e8f
ddl: support "or replace" option when create view ( #8856 )
2019-01-16 19:54:22 +08:00
c137cada68
*: change golang.org/x/net/context to standard context ( #8579 )
2018-12-05 13:54:00 +08:00
6fb260f8a6
*: redesign trace statement with json output ( #8357 )
2018-11-21 13:50:18 +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
dbdd806c0e
*: add session variable "tidb_enable_cascades_planner" ( #7879 )
2018-10-12 13:21:51 +08:00
e79bd946ed
*: change package name from plan to planner ( #7760 )
2018-09-25 11:16:39 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
343cb849b8
*: fast path point select ( #6937 )
2018-07-30 18:13:47 +08:00
f9a5686f9b
executor: make set system variable log shorter ( #7029 )
2018-07-11 14:09:22 +08:00
93efc51b96
*: unify the connection ID format in log ( #6670 )
...
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
c946dbbbb7
executor: fix confusing statement label ( #6419 )
2018-04-28 12:31:08 +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
e6eb3ae9f5
executor, metrics: add metrics for expensive executors and statement nodes ( #5798 )
2018-02-09 12:15:20 +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
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
15212587e1
*: remove resolver.go ( #4988 )
2017-11-10 14:42:10 +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
29153d7b20
*: opentracing for Execute,ParseSQL,Compile,runStmt ( #4929 )
2017-10-31 05:13:59 -05:00
ebf090b0dc
plan, executor: remove some XXStmt from resolver.go ( #4823 )
...
* plan, executor: remove AdminStmt, AlterTableStmt, AnalyzeTableStmt, DropStatsStmt, CreateIndexStmt,
CreateTableStmt, DoStmt, DropTableStmt, DropIndexStmt, RenameTableStmt, SetStmt, ShowStmt from resolver.go
2017-10-24 06:16:34 -05:00
d88344f869
plan, tidb: support plan cache for SELECT statement ( #4644 )
2017-10-11 22:34:04 -05: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
88e1666ac6
*: change the log package to logrus ( #4452 )
2017-09-08 00:45:07 -05: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
d0b00665aa
domain,executor: ignore restricted sql for statement count metrics ( #4064 )
...
To make the statement count metrics more precise, we should ignore
some background job such as update statistics and load privilege.
2017-08-07 17:00:46 +08:00
8adac8fe6c
*: set low priority for expensive SQL and high priority for point get ( #3881 )
2017-08-02 13:53:36 +08:00
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