23227ea4a0
statistics: hide the tidb_analyze_version before it's GA ( #23327 )
2021-03-16 13:54:55 +08:00
61075d3c5b
planner: hide the switch of dynamic-pruning and global-stats ( #23320 )
2021-03-16 10:54:55 +08:00
1e2f1c0b9d
statistics: add tests for global-stats when add and delete a single partition ( #23256 )
2021-03-12 15:44:20 +08:00
6d258c708a
statistics: delete extended stats cache item in current tidb synchronously ( #23088 )
2021-03-12 12:00:55 +08:00
2258ab7267
statistics: add multi-column index test cases for global-statas ( #23265 )
2021-03-12 11:20:06 +08:00
c1b8347425
statistics: add a test case which builds global-stats on different versions of partition-stats ( #23231 )
2021-03-11 14:14:58 +08:00
168ef8878d
statistics: test the auto analyze and feedback for the global-level stats ( #23181 )
2021-03-10 19:36:55 +08:00
b6db4506dc
statistics: update the count and modify variables of global-stats as well when dumping delta info ( #23228 )
2021-03-10 16:24:55 +08:00
6f763574c9
statistics: test tidb_partition_prune_mode session variable ( #23176 )
2021-03-10 13:59:36 +08:00
579cf90afa
statistics: fix a case that auto-analyze is triggered outside its time range ( #23214 )
2021-03-09 21:44:54 +08:00
b42a6f449a
statistics: add test for analyze single partition ( #23167 )
2021-03-08 19:58:55 +08:00
4cc597a891
statistics: add more test cases for global-stats with different analysis options ( #23169 )
2021-03-08 19:41:59 +08:00
31df40b9bc
statistics: add some test cases of global-stats to cover more column types ( #23138 )
2021-03-08 14:10:54 +08:00
7fdfc44f8c
statistics: add tests for analyze with dynamic partition prune mode ( #23113 )
2021-03-05 16:26:54 +08:00
a1712a037f
statistics: add more test cases about global-stats and fix some issues ( #23099 )
2021-03-05 14:34:31 +08:00
2cdd8a30ca
statistics: report error for extended statistics register on partitioned tables ( #23089 )
2021-03-04 15:50:15 +08:00
1ae775f6f9
statistics: add more test cases for global-level stats ( #23049 )
2021-03-04 15:19:21 +08:00
263155a650
statistics: make exponential backoff estimation more safe ( #23086 )
2021-03-04 11:10:54 +08:00
a4b4d7ab9d
statistics: fix the correlation estimation for version 2 ( #23057 )
2021-03-03 21:00:54 +08:00
b63337f4e9
statistics: fix merge idx hist with poped topn ( #23075 )
2021-03-03 18:36:06 +08:00
a64d8860f1
statistics: forbid global-stats in stats-ver1 and make analyze options take effect in global-stats ( #23050 )
2021-03-03 11:58:54 +08:00
6bb16e55ff
statistics: add static partition prune mode checks ( #23016 )
2021-03-02 19:30:30 +08:00
d94920e4a9
statistics: support dropping partition/global level statistics ( #23023 )
2021-03-02 16:52:48 +08:00
8230f4162b
*: optimize analyze cluster index table ( #21381 )
2021-03-01 22:14:54 +08:00
3d4def7eef
planner, statistics: allow (auto) analyze single partition in dynamic-only mode ( #22625 )
2021-03-01 17:23:31 +08:00
550ca8eaeb
statistics: enables global-level stats to be generated in fast analyze mode ( #22931 )
2021-03-01 16:40:50 +08:00
e1004a2ccb
*: modify the switch to control global stats ( #22866 )
2021-03-01 14:18:30 +08:00
b1b7730402
statistics: add more tests to check accurateness of global-stats ( #22948 )
2021-03-01 12:49:56 +08:00
35534ae752
*: apply golangci-lint to the new code ( #22824 )
2021-02-24 18:24:03 +08:00
b5c6c9f548
statistics: make dump/load/show-stats be compatible with global-stats ( #22911 )
2021-02-24 17:33:40 +08:00
270d497848
statistics: introduce new estimation logic when index histogram fails to estimate ( #22682 )
...
* statistics: introduce new estimation logic when index histogram fail to estimate
* address comments
* address comments
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
2021-02-24 16:30:03 +08:00
62354d04b7
statistics: merge partition-level FMSketch to global-level FMSketch and update the column NDV ( #22878 )
2021-02-23 19:06:23 +08:00
df9e730c16
stats, planner, sessionctx: handle compatibility between feedback and ver2 stats ( #22846 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Yiding Cui <winoros@gmail.com >
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
2021-02-23 13:46:49 +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
1cd390b2bc
statistics: merge poped topn when generating the global histogram ( #22848 )
2021-02-22 14:34:53 +08:00
8842bbcde2
statistics: merge partition-level TopN to global-level TopN ( #22433 )
2021-02-19 19:05:58 +08:00
99d0b22f04
session, util: update session to use new APIs ( #22652 )
2021-02-19 13:10:30 +08:00
59ccb29508
statistics: merge the partition-level histograms to a global-level histogram ( #22603 )
2021-02-19 11:08:04 +08:00
27db39b480
*: use CLUSTERED and NONCLUSTERED to control primary key type ( #22409 )
2021-02-05 20:41:41 +08:00
2d717c12b3
statistics: merge the partition-level stats to global-level stats ( #22667 )
2021-02-05 11:42:41 +08:00
9a2997facb
statistics,executor: fix some unit tests that run twice ( #22705 )
2021-02-05 11:27:11 +08:00
343c412531
planner, executor, statistics: add tests for version 2 and fix bugs ( #22461 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-02-04 15:52:30 +08:00
17a65ab98b
statistics: refactor the statistics package use the RestrictedSQLExecutor API ( #22636 )
2021-02-03 13:28:57 +08:00
109ad45303
statistics: fix bug when bootstrap version 2 stats ( #22608 )
2021-02-01 11:18:44 +08:00
7f53f840fe
statistics: add tests for version 2 stats and fix bug ( #22564 )
2021-01-27 19:42:01 +08:00
f22ec62dd0
statistics: fix panic occurs when stats cache inconsistency ( #22465 )
2021-01-27 16:41:07 +08:00
05d995d73d
statistics: add more tests about ver2-stats ( #22457 )
2021-01-26 20:59:18 +08:00
0aa476034a
go.mod, statistics, planner: replace TIDB_STATS with STATS_EXTENDED ( #22492 )
2021-01-25 21:18:07 +08:00
8d2ab4ef7a
statistics: fix inaccurate row count estimation caused by cross validation using invalid column stats ( #22479 )
2021-01-22 17:42:37 +08:00
d0ca720a5f
*: support ALTER TABLE ADD / DROP TIDB_STATS ( #22127 )
2021-01-14 15:28:28 +08:00