Commit Graph

201 Commits

Author SHA1 Message Date
f710f3d9a3 executor: support selecting store by tidb_replica_read for stale read (#28033) 2021-09-15 14:52:41 +08:00
bc5c912f85 statistics: some refactoring about stats collector (#26583) 2021-08-18 01:39:59 +08:00
d06fd67764 statistics: fix "data too long" error when dumping stats from table with new collation data (#27033) 2021-08-17 16:02:00 +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
73bb7dd2c6 *: Annotations and fixes related to gosec (#26907) 2021-08-09 22:27:15 +08:00
34d43fb8c5 *: convert tikv.error which is returned by RegionCache.Locate to tidb.error (#26647) 2021-07-28 10:26:16 +08:00
787772d874 stats: fix auto analyze panic (#25987) 2021-07-06 22:21:29 +08:00
420e27ebfa *: update count / modify_count of mysql.stats_meta incrementally (#24720) 2021-07-02 19:05:26 +08:00
8a0be6181b statistics: skip dumping nil histograms for virtual columns in analyze (#25789) 2021-06-28 16:55:25 +08:00
149e86ac4b *: introduce snapshot into analyze (#24575) 2021-06-25 15:17:24 +08:00
74055f7f0e statistics, executor: fix new collation for analyze version 2 (#25311) 2021-06-17 01:32:37 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
11716e7f4a *: use full sampling as default analyze (#25132) 2021-06-06 00:34:27 +08:00
2e083b40e5 statistics: support indexes containing virtual column for full sampling (#24999) 2021-06-04 16:18:28 +08:00
41e1e814ff executor: parallel some part of the sampling-based analyze (#24860) 2021-06-03 23:08:26 +08:00
66ad36ee10 planner, executor, statistics: support correlation calc for new sampling method (#24458) 2021-05-25 23:57:34 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
xhe
bfdad7c752 *: milisecond test and infoschema fix (#24820) 2021-05-24 18:27:34 +08:00
2df8c3bfd1 store/tikv: resolve ReplicaReadType dependencies (#24653) 2021-05-17 14:09:39 +08:00
d2bdfd51b7 store/tikv: move transaction options out to /kv (#24619) 2021-05-13 17:49:39 +08:00
c8bc701170 *: misc cleanups to variable package (#24507) 2021-05-11 13:23:38 +08:00
3fed33fc17 statistics: dump FMSketch to KV only for partition table with dynamic prune mode (#24453) 2021-05-11 12:47:38 +08:00
xhe
5e9e0e6e37 *: consitent get infoschema (#24230) 2021-05-10 21:00:36 +08:00
18d519f056 stats, executor: use a correct sampling to collect stats (#23997) 2021-05-02 23:11:51 +08:00
0ec8f2d9fb store/tikv: remove use of Priority transaction options in store/tikv (#24360) 2021-04-29 13:59:57 +08:00
619c472005 store/tikv: remove IsolationLevel option (#24335) 2021-04-28 15:25:56 +08:00
77577d823e executor, statistics: remove NULL value from column histogram created by fast analyze (#24183) 2021-04-21 20:09:55 +08:00
3f6dfe91da distsql: refactor range splitting logic & comments on int64 boundary (#23991) 2021-04-15 21:51:53 +08:00
d460a9c49a *: add column End_time in show analyze status and add related log (#23674) 2021-04-14 18:31:51 +08:00
1e2cbf9a22 store/tikv: use []byte instead of kv.Key in package store/tikv (#23859) 2021-04-13 12:39:52 +08:00
dbd31ad044 statistics: make the global-level topN more accurate (#23862) 2021-04-12 12:06:34 +08:00
xhe
2ea64b28fd executor,distsql: clean up useless interface (#23885) 2021-04-09 21:30:33 +08:00
3a1dd7a665 statistics: collect FMSketch when processing index analyze tasks (#23838) 2021-04-09 15:40:18 +08:00
35eded065e *: fix structcheck lint warnings (#23062) 2021-03-24 21:09:37 +08:00
efe172b0e0 store/tikv:move option from kv to tikv, and make define as a normal int (#23171) 2021-03-22 20:13:36 +08:00
1d5a81edb3 statistics: handle drop partition events for global-stats (#23343) 2021-03-22 14:29:36 +08:00
b983856ddf store/tikv:mv kv.ReplicaReadType to tikv (#23376) 2021-03-19 21:19:36 +08:00
b534ec7b49 store/tikv: remove kv.Version from package store/tikv (#23282) 2021-03-13 10:38:55 +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
f33d02bdbf statistics: forbid getting global-stats through fast analyze and incremental analyze (#23066) 2021-03-05 11:24:54 +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
5b12f9224e *: check tidb_enable_extended_stats in analyze and row count estimation (#23029) 2021-03-03 02:54:53 +08:00
8230f4162b *: optimize analyze cluster index table (#21381) 2021-03-01 22:14:54 +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
35534ae752 *: apply golangci-lint to the new code (#22824) 2021-02-24 18:24:03 +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
461cae15a7 planner, distsql: fix the behaviour of building ranges for TiFlash (#22725) 2021-02-21 18:29:46 +08:00
8842bbcde2 statistics: merge partition-level TopN to global-level TopN (#22433) 2021-02-19 19:05:58 +08:00
59ccb29508 statistics: merge the partition-level histograms to a global-level histogram (#22603) 2021-02-19 11:08:04 +08:00