e068663cdc
Auto split insert data into multiple batches. ( #2958 )
...
Add a sysvar to enable batch insert data and disable batch insert in transaction.
2017-03-30 14:57:55 +08:00
ad13ca15ca
session: reset affected rows in retry. ( #2949 )
2017-03-29 16:09:47 +08:00
6aa45e441c
Make index serial scan concurrency configurable and fix golint errors. ( #2928 )
2017-03-27 00:57:19 +08:00
ed56d82fa7
sessionctx/variable: refine TiDB specific system variables. ( #2915 )
2017-03-24 12:57:33 +08:00
7aa024c9a0
*: add UTF8 check global variable. ( #2899 )
2017-03-23 08:56:21 +08:00
60bcd987d5
plan/statistics: concurrent build columns ( #2713 )
2017-03-22 22:16:45 +08:00
e55534f1e9
varsutil: tiny cleanup ( #2884 )
...
Extract a function to check if the option is on.
2017-03-19 16:09:55 +08:00
af3fb807ed
server: stop listener on critical error. ( #2854 )
2017-03-17 18:54:51 +08:00
a408b86269
*: support in subquery unfolding ( #2816 )
2017-03-16 14:26:34 +08:00
cca10bab58
table: check and truncate UTF8 string in CastValue. ( #2819 )
2017-03-15 11:26:19 +08:00
42cd9ac552
*: add flag to control agg push down ( #2809 )
2017-03-10 20:43:08 +08:00
e617e0492b
vendor: update grpc to v1.0.4 ( #2784 )
2017-03-06 19:47:08 +08:00
8ff4e75407
binlog: always include old row for update and delete ( #2624 )
...
Old row value is required for translating to MySQL binlog.
2017-02-28 15:43:04 +08:00
fbf0530210
*: introduce all sql_modes ( #2739 )
2017-02-27 10:53:48 +08:00
07952cb108
*: basic support show warnings. ( #2724 )
2017-02-24 16:29:39 +08:00
6b2ac5ad0d
variable: Enlarge default value for max_allowed_packet ( #2652 )
...
* variable: Enlarge default value for max_allowed_packet
2017-02-15 09:27:49 -06:00
8bafc3d515
tidb: accelerate unit test ( #2590 )
...
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00
67a9bd0eaa
sessionctx/varsutil: fix format str in sysvar error msg ( #2572 )
2017-01-29 14:24:26 +08:00
9d536e34a7
*: run a bootstrap session before store is ready (fix race) ( #2491 )
2017-01-22 11:39:25 +08:00
999517c4f1
Revert "*: run a bootstrap session before store is ready" ( #2490 )
2017-01-17 15:14:24 +08:00
e1ecc1059e
*: run a bootstrap session before store is ready ( #2481 )
2017-01-17 14:46:35 +08:00
244de11287
*: Make column test stable and fix prepare statement issue ( #2473 )
2017-01-15 22:59:05 +08:00
42f570ab46
*: add 'max_allowed_packet' in common variables. ( #2470 )
...
To save a global query to TiKV when a new connection creates.
2017-01-15 15:52:05 +08:00
7c66138042
executor: optimize delete statement. ( #2421 )
2017-01-10 15:13:00 +08:00
a44d9c3891
*: add builtin function UNIX_TIMESTAMP ( #2369 )
2017-01-05 14:09:21 +08:00
27c0c76cb1
sessionctx: add 'time_zone' session variable ( #2375 )
2017-01-03 20:03:03 +08:00
235a7979b9
sessionctx/varsutil: refactor system variable ( #2359 )
...
Make varsutil package manage all the system variable get and set method.
2017-01-03 11:15:50 +08:00
ebbbf8993b
ddl: speed up create table without the need to change lease. ( #2332 )
...
DDLs that doesn't modify rows like create/drop/truncate table, create/drop database
do not need to wait 2 lease on ddl worker, we can safely remove those wait to
speed up DDL.
But user may create a table, then insert data on that table on another TiDB server,
So we need to wait in session.
User can set a session variable to skip DDL wait if needed, and there is no risk of
data inconsistency.
This solution remove the need for user to set lease to zero when loading data,
It's much more safe and easy to use.
2016-12-28 22:08:19 +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
24f27a2622
*: types.TimeInternal GoTime method would return error ( #2185 )
2016-12-12 17:22:49 +08:00
1b8051d3c5
*: set and use Flags to properly handle truncate error ( #2212 )
2016-12-12 11:45:58 +08:00
51a10a6725
*: Fix issue #2175 ( #2188 )
...
*: fix issue #2175
2016-12-07 14:58:22 +08:00
296f4a6cf3
util/types: refact Time introduce a TimeInternal interface ( #2098 )
...
Go time representation is not compatible with mysql, this
commit is a prepare before the code refact.
timeInternal is a interface for time representation, and it
would make the refact more smooth.
2016-11-29 21:04:59 +08:00
9ae34add12
sessionctx/binloginfo: fix race. ( #2130 )
...
close DDL before set PumpClient to nil.
2016-11-29 17:21:34 +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
ea894e8b77
*: Add a function GenByArgs for Error ( #2033 )
...
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
73f2ffad90
varsutil: remove dependency on 'types' for 'variable' package ( #2095 )
...
* varsutil: remove dependency on 'types' for 'variable' package
'variable' package will be used in 'types', remove dependency on 'types' by
moving functions to a new 'varsutil' package.
Also extract 'SetExec' from 'SimpleExec'
2016-11-25 13:44:49 +08:00
b19cc75a94
mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. ( #2082 )
...
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +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
3612ba0e0f
binlog: add sequence to binlog.TableMutation ( #2060 )
...
Add sequence in binlog.TableMutation to preserve the original mutation order.
2016-11-22 17:54:24 +08:00
4d988fb62b
*: Fix set tidb session variable bug ( #2036 )
2016-11-19 11:42:03 +08:00
470d6dcd1c
*: Fix TiDBSkipConstraintCheck session scope variable bug ( #2035 )
2016-11-19 11:08:58 +08:00
5f457a2c62
*: Add a variable to skip constraint check in session. ( #2031 )
...
When import data from mysqldump/mydumper. We could skip constraint check.
2016-11-18 22:54:28 +08:00
fa9cb730a9
sessionctx/binloginfo: disable grpc tracing ( #1981 )
2016-11-09 11:19:16 +08:00
1c6c145f94
*: Set custom verbose flag to true ( #1956 )
...
* *: set custom verbose flag to true
* *: update .gitignore
2016-11-05 18:00:13 +08:00
e1cb126155
store/tikv: remove cluster ID
2016-11-04 21:14:10 +08:00
5d1a069ada
executor: set scanConcurrency varialbe for distsql Executor on building. ( #1943 )
...
Prevent worker goroutines from reading session variable map, Fixes race.
2016-11-04 09:46:00 +08:00