Commit Graph

441 Commits

Author SHA1 Message Date
c07fcc4a34 executor: make the projection executor support vectorized expression evaluation (#11917) 2019-08-30 13:41:05 +08:00
7c0093f766 sessionctx/variable: change add index variable default value (#11786) 2019-08-23 19:55:20 +08:00
396b094675 *: record query start time to session variables (#11822) 2019-08-22 21:46:17 +08:00
1b998ce4f6 *: record index name in the slow log instead of index id (#11795) 2019-08-22 14:27:47 +08:00
ec681598b6 *: change the query start time to the parsing time (#11159) 2019-08-20 20:35:16 +08:00
a1411ba669 sessionctx/binloginfo: fix uncomment pre_split_regions ddl-querys in binlog (#11762) 2019-08-19 22:50:19 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
1595c0101e *: replace context.WithValue string key to typed struct{} key (#11675) 2019-08-09 14:11:48 +08:00
028f63cb4a *: rename tidb_back_off_weight (#11655) 2019-08-07 15:04:56 +08:00
1e1cc1f325 types: fix string to integer cast (#11295) 2019-07-26 19:10:30 +08:00
86d8f9a4bb *: add succ filed to slow log and fix shallow copy problem when parse slow log file. (#11417)
Test pass, auto merge by Bot
2019-07-24 19:20:18 +08:00
ca70d74a28 executor, expression: fix current_timestamp/now not consistent… (#11342) 2019-07-23 17:02:24 +08:00
d381d84d1b executor,sessionctx: refine output format for tidb-specific variables of boolean type (#11239) 2019-07-15 15:47:17 +08:00
c8ed781d51 executor: push-down LoadDataStmt in distsql (#11067)
moving function `statementContextToFlags` to `StatementContext.PushDownFlags()`

Co-authored-by: Lonng <heng@lonng.org>
Co-authored-by: Foreyes <foreyes_1002@163.com>
2019-07-14 17:58:49 +08:00
7f3bff8afe session: do not keep history when the transaction retry is disabled (#11192) 2019-07-12 12:42:33 +08:00
89baed8e17 ddl: scatter the regions of table when creating them (#10980) 2019-07-10 11:09:14 +08:00
a737d26e4f *: add tidb_enable_noop_functions to default disable get_lock()/release_lock() (#10987)
* issue#4100 add new variable to default disable usage of get_lock and release_lock functions
2019-07-08 13:47:36 +08:00
407e50da82 planner: generate IndexMergePath in physical optimization (#10512) 2019-07-05 14:49:54 +08:00
98274ccbf2 plugin: setup connection info in session when audit plugin be enabled (#10923) 2019-06-27 11:29:40 +08:00
cf5f42b8ec infoschema, sessionctx: add support for mysqldump from 8.0 (#10829) 2019-06-26 16:56:42 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
9dd32e84c6 *: rename and add tidb_wait_split_region_timeout session variable to set wait split region timeout. (#10797) 2019-06-20 14:57:35 +08:00
421de5ef20 executor,server: re-implement the kill statement by checking the Next() function (#10841) 2019-06-20 11:03:21 +08:00
612936bbd4 *: Support LOCK/UNLOCK TABLES feature (#10343) 2019-06-18 15:38:04 +08:00
04cd877967 session, sessionctx: add unit test for sessionctx, session (#10763) 2019-06-18 15:09:13 +08:00
785922d923 expression: fix the behavior of DATE_SUB (#10607) 2019-06-13 20:36:35 +08:00
7d27fa63d3 ddl, table: allow using SHARD_ROW_ID_BITS with auto_incremental columns (#10759) 2019-06-12 20:43:29 +08:00
f67352d238 *: print an expensive log when a query exceeds time threshold (#10350) 2019-06-05 20:38:11 +08:00
4ef94405ec infoschema/slow_query: add host column in slow_query table. (#10693) 2019-06-04 20:55:43 +08:00
fc1da0d36c planner: use max correlation in heuristic row count estimation (#10537) 2019-06-04 13:04:05 +08:00
38e32f7da6 binloginfo: Optimize addSpecialComment by reusing compiled regexp (#10502) 2019-06-04 08:28:17 +08:00
7cf35f1ae6 *: preload load frequent use variable (#10463) 2019-05-29 15:40:40 +08:00
c4db7b7655 planner, executor: fix show view privileges for explain (#10585) 2019-05-27 13:22:28 +08:00
96c6ea1ca9 *: support 'tidb_txn_mode' session variable. (#10574) 2019-05-24 00:50:04 +08:00
abd013c82f Add tidb_low_resolution_tso session scope variable on master (#10428) 2019-05-22 21:42:57 +08:00
31773287be *: remove useless defer and setReadTimeout (#10441) 2019-05-14 16:35:40 +08:00
aafca88eda executor,sessionctx: add correctness checking for more system variables (#10396) 2019-05-12 19:29:25 +08:00
373748adf7 *: support pessimistic transaction (experimental feature) (#10297) 2019-05-11 09:48:45 +08:00
5617809e92 infoschema/slow_query: fix token too long (#10328) 2019-05-09 23:38:37 +08:00
d8589df2f3 *: add a variable to control the back off time and disable txn auto retry by default (#10266) 2019-05-08 10:23:49 +08:00
36bb1ae89a log: change slow log time format to compatible with pt-query-digest (#10290) 2019-04-30 09:35:52 +08:00
9630d57c80 planner/core: make join reorder by dp work (#8816) 2019-04-28 13:08:46 +08:00
732f4307b8 ddl: add table option pre_split_regions for pre-split region when create table with shard_row_id_bits. (#10138) 2019-04-24 21:56:24 +08:00
f9c82b531c plan: improve row count estimation using column order correlation (#9839) 2019-04-24 16:19:21 +08:00
718871646b executor: reduce alloc and lock-hold-time caused by err/warn count (#10223) 2019-04-24 09:51:02 +08:00
66ba872857 session: Adjust cop-tasks' information in slow log to let it can be parsed by pt-query correctly (#10230) 2019-04-22 22:52:54 +08:00
f834e5d56f executor: show memory consumption in slow query log (#10162) 2019-04-18 15:16:44 +08:00
2a6c8d610a executor: show more information about cop tasks in slow log (#10165) 2019-04-18 13:39:57 +08:00