Commit Graph

129 Commits

Author SHA1 Message Date
9c64224c49 *: Reduce data inconsistencies (#31547)
ref pingcap/tidb#26833
2022-02-11 13:51:36 +08:00
4bda04f15c planner: introduce historical statistic dumping triggered by analyze (#31032)
close pingcap/tidb#18745
2022-01-21 16:35:46 +08:00
acff9c3cff *: Change stmt summary and capture plan baselines to GLOBAL only (#30756) 2022-01-12 13:29:42 +08:00
088a2444df *: persist analyze options for manual and auto analyze (#30939) 2021-12-30 00:39:49 +08:00
807ca05230 sessionctx: enable IndexMerge by default (#30650)
close pingcap/tidb#29597
2021-12-27 12:19:49 +08:00
866c5514af session: fix bootstrap to only persist global variables (#30593)
close pingcap/tidb#28667
2021-12-19 22:21:45 +08:00
d660e483c2 sessionctx: fix the value of analyze_version when upgrading 4.x to 5.… (#30743) 2021-12-15 21:12:34 +08:00
9a074f1dbe *: use the real StateRemote interface implementation for cached table (#30066) 2021-12-10 16:55:57 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
da76e34953 *: add support for --initialize-secure and --initialize-insecure (#28487) 2021-10-27 14:38:49 +08:00
de9b5cbb05 session, statistics: fix "data too long for column 'xxx_bound'" when analyze tables with very long strings (#28800) 2021-10-25 19:50:48 +08:00
ab0d231d9e session: add system table mysql.column_stats_usage (#27849) 2021-10-18 19:24:43 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
6eb02fbe5e session: support references on column (#28546) 2021-10-07 12:23:22 +08:00
680de922ed *: fix license header (#28085) 2021-09-17 22:26:41 +08:00
75ee932f00 session: update Host type to char(255) in mysql.* tables for compatible with mysql-8.0 (#27887) 2021-09-13 11:18:39 +08:00
6267e0fbe3 session: change the global variable tidb_stmt_summary_max_stmt_count value from 200 to 3000 when upgrade (#27321) 2021-09-10 21:58:39 +08:00
5c1081f669 *: support user defined filters for baseline capture (#26294) 2021-08-18 15:44:00 +08:00
dd34d4869f Revert "session: add physical table placement_policy in mysql schema" (#27250) 2021-08-17 15:03:59 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
bf8cfb448b session: add physical table placement_policy in mysql schema (#27054) 2021-08-13 21:05:58 +08:00
8ad5b52fb4 ddl: check multibyte character set index length (#27061) 2021-08-11 14:25:15 +08:00
a8adc4cf8e *: fix many leaks of the test case (#26909) 2021-08-06 13:55:12 +08:00
149e86ac4b *: introduce snapshot into analyze (#24575) 2021-06-25 15:17:24 +08:00
1cab530b79 session: force tidb_multi_statement_mode=OFF when mode=WARN (#25723) 2021-06-24 20:31:24 +08:00
f81ef55795 planner: solve an incompatible issue about dynamic-mode and TiFlash and enable dynamic mode by default (#25255) 2021-06-08 20:08:28 +08:00
a8b1f687e0 session: fix a bug when updating duplicate bindings (#25168) 2021-06-04 22:40:28 +08:00
c287bcb48c executor: Add plugin column to mysql.user (#24894) 2021-05-28 16:33:36 +08:00
67e63d9ffa variable: merge Bool{On,Off} with {On,Off} (#24218) 2021-04-23 13:09:54 +08:00
90d02b2eed *: add support for dynamic privileges (#22778) 2021-04-01 00:17:24 +08:00
3cf2bf9120 session: add session scope for tidb_enable_clustered_index (#23704) 2021-03-30 23:31:24 +08:00
5a4d89416b session: fix bug user privileges change after upgrade from 4.0.11 to 5.0 (#23403) 2021-03-25 13:07:23 +08:00
26ccbe972a *: create int primary key table as nonclustered by default (#23046) 2021-03-16 19:19:49 +08:00
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