Commit Graph

96 Commits

Author SHA1 Message Date
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
088fe75b1c session: enable async commit in new clusters (#23274)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-03-12 21:02:59 +08:00
1d99292455 *: hide the system variables tidb_track_aggregate_memory_usage (#23184) 2021-03-12 17:59:21 +08:00
276dd0e69e util: optimize the performance of restore with db (#22910) 2021-03-12 16:46:56 +08:00
e1004a2ccb *: modify the switch to control global stats (#22866) 2021-03-01 14:18:30 +08:00
f3fe4895cb statistics: support to store FMSketch and add FMSketch to column stats (#22841)
* add FMSketch to mysql.stats_histograms

* statistics: support store FMSketch and add FMSketch to histogram

* FIX UT

* Create Stats_FM_Sketch Table

* fix UT

* add some tests

* FIX ut

* move fmSketch from histogram to column.stats

* remove unused code and comments

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* fix ut

* finish the FMSketch.MemoryUsage function

* add some comments for FMSketch.MemoryUsage function

* fix typo

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-23 10:39:09 +08:00
99d0b22f04 session, util: update session to use new APIs (#22652) 2021-02-19 13:10:30 +08:00
7ca1629d1a *: refactor ExecuteInternal to return single resultset (#22546) 2021-02-01 14:05:27 +08:00
e1e4ad14e5 session: fix the bug that may cause upgrading from v4.0.10 fail (#22448) 2021-01-26 14:46:36 +08:00
3dd842f50a statistics: add bucket ndv for index histogram (#20580)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-13 18:24:21 +08:00
dd234b7e32 session: fix the duplicate binding case when updating bind info (#22367) 2021-01-12 16:30:59 +08:00
78529e86eb session: fix two cases when updating bind info (#22338) 2021-01-11 15:55:58 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
76054200b6 statistics: redesign the schema for mysql.stats_extended (#22033)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-04 17:57:24 +08:00
c40d7833b8 config, session: promise the compatibility of oom-action when upgrading (#22102) 2020-12-30 21:14:14 +08:00
27071f14d7 session/bootstrap: disable clustered index by default (#21777) 2020-12-25 15:44:07 +08:00
4fdc99b8dd session: fix didn't change current version in #21856 (#22011) 2020-12-25 11:20:59 +08:00
2139421494 session: use ExecuteInternal to execute the bootstrap SQLs (#21979)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-24 10:10:59 +08:00
e573ed64a6 bootstrap: add mysql.user columns for parser#1121 (#21856) 2020-12-21 16:07:31 +08:00
31673c8e92 bindinfo: sync concurrent ops on mysql.bind_info from multiple tidb instances (#21629) 2020-12-18 03:51:35 +08:00
21bf3b6202 ddl: add a switch for multi schema change & make it compatible with old test cases (#21533) 2020-12-10 16:26:00 +08:00
1a2098216e session/bootstrap: Do not enable async commit and 1pc by default for new cluster (#21438)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2020-12-03 13:50:48 +08:00
0e2f18d8f9 store, config, session: Use system variables to enable async commit and 1PC (#21365)
* add a system variable for enabling async commit

Signed-off-by: ekexium <ekexium@gmail.com>

* remove async commit enable config item

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for enabling 1PC

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* remove 1pc item in config

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* correct the condition to enable 1pc

Signed-off-by: ekexium <ekexium@gmail.com>

* do not enable 1pc/async commit on bootstrap if store is not tikv

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor checkAsyncCommit

Signed-off-by: ekexium <ekexium@gmail.com>

* fix test: enable async commit or 1PC by setting txn options

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for external consistency

Signed-off-by: ekexium <ekexium@gmail.com>

* remove external consistency config item

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: checkXXX does not need parameters

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: add a helper function to pessimistic_test

Signed-off-by: ekexium <ekexium@gmail.com>

* change allowed scope to global or session

Signed-off-by: ekexium <ekexium@gmail.com>

* fix external consistency test

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-12-02 11:49:57 +08:00
59b8e7597b session: fix the bug that may cause upgrading from v4.0 fail (#21350) 2020-11-30 19:08:57 +08:00
c201eb7335 config, session: keep the default value of mem-quota-query when upgrade from 3.0 to 4.0.9+ (#21305) 2020-11-26 17:12:51 +08:00
e136429d8d *: refactor parser initialize method and add tidb_enable_strict_double_type_check variable (#20967) 2020-11-16 19:58:27 +08:00
269494e3de *: Move sysvar validation to struct (3 of 3) (#20521) 2020-11-12 13:22:42 +08:00
a53c1d05b1 expression: Support some cast functions push down to TiFlash (#20787) 2020-11-04 15:21:01 +08:00
152b60ebe4 session: increase cm_sketch column max length to 6291456(6MB) (#20152) 2020-11-02 15:21:25 +08:00
99d1163cbc *: use ID instead of NAME in mysql.schema_index_usage (#20589) 2020-10-23 14:42:29 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
bdb6c49600 *: collect index usage information from point get and dump them to KV (#20126) 2020-10-16 16:17:34 +08:00
f52956a39f session: format some sql statements (#17614) 2020-10-05 14:42:23 +08:00
fa81ec51b4 *: refactor sysvars to allow component registration (#20289) 2020-09-29 14:04:24 +08:00
31bd7d8b3d planner: rename optimizer hint TOPN_TO_COP() to LIMIT_TO_COP() (#20022) 2020-09-17 14:23:23 +08:00
2a3a5ab076 *: disable new partition prune in master distribution (#19911) 2020-09-14 16:26:54 +08:00
6f1311f4fc session: enable clustered index by default for new clusters (#19688) 2020-09-02 12:00:58 +08:00
b133ae9d30 session/bootstrap: disable clustered index (#19623) 2020-08-31 19:44:54 +08:00
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +08:00
55bd479623 session: add mysql.schema_index_usage table (#19254) 2020-08-19 15:58:20 +08:00
c5c7bf87bb *: support CREATE / DROP / ADMIN RELOAD STATISTICS (#18880) 2020-08-11 17:27:48 +08:00
2dfae9850a executor: make hashjoin using executor_concurrency (#18213) 2020-07-08 13:41:10 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
7ca3d9cadc bindinfo, record how bindings are created in SQL bindings. (#17254) 2020-05-27 09:56:40 +08:00
997b986387 session: fix a bug that upgrading from 3.1.1 to 4.0 fails (#17293) 2020-05-19 21:18:24 +08:00
468b8c6f7b executor, privilege: introduce a new privilege for the set config statement (#16847) 2020-04-27 14:17:38 +08:00
493b97142a session: boostrap delete isolation engines from global variables (#16622) 2020-04-24 18:07:20 +08:00
9bda71df3b infoschema, session: forbid statement summary related global v… (#16652) 2020-04-23 12:35:25 +08:00
b8494e7a11 expression: support disable expression pushdown based on store… (#16389) 2020-04-17 14:53:25 +08:00
1b3b6f0e80 *: make 'password' in mysql.user as a generated column of authentication_string (#15311) 2020-03-16 15:26:24 +08:00