Commit Graph

133 Commits

Author SHA1 Message Date
fbc3c7e58a statistics: fix panic when to enable force-init-stats (#51357)
close pingcap/tidb#51358
2024-02-27 10:47:08 +00:00
0df9170791 planner/infoschema: support push down lower to some memtables (#50874)
ref pingcap/tidb#50305
2024-02-27 07:26:01 +00:00
801de42a0e statistics: use correct last update version (#51287)
ref pingcap/tidb#50132
2024-02-27 06:47:10 +00:00
f4e758a89d statistics: build the table analysis job queue part2 (#51152)
ref pingcap/tidb#50132
2024-02-26 11:46:59 +00:00
5b187e5e56 planner: standalone implement for PlanContext (#51237)
close pingcap/tidb#51236
2024-02-22 15:03:28 +00:00
8f2428e492 statistics: remove unnecessary copy in the baseCollector (#51244)
close pingcap/tidb#51246
2024-02-22 11:04:57 +00:00
671e980340 statistics: build the table analysis job queue (#51045)
ref pingcap/tidb#50132
2024-02-22 07:21:27 +00:00
fc8118243c statistics: check if stats is nil (#51195)
close pingcap/tidb#51187
2024-02-21 11:22:58 +00:00
11f716e206 bootstrap, br: add sys.schema_unused_indexes view (#50887)
close pingcap/tidb#50886
2024-02-21 05:22:57 +00:00
6a010b5445 statistics: skip create pseudo stats for partitions (#51123)
close pingcap/tidb#50100
2024-02-19 08:57:25 +00:00
d96244d34b statistics: fix the test case by increase the time interval (#51139)
close pingcap/tidb#51142
2024-02-19 07:48:26 +00:00
464a12651b build(deps): bump github.com/golangci/golangci-lint from 1.55.2 to 1.56.1 (#51089) 2024-02-18 06:57:01 +00:00
ee1864460f planner: introduce PlanContext to provide context for planner phase (#51074)
close pingcap/tidb#51070
2024-02-08 10:35:47 +00:00
28ce5fb234 stats, metrics: add and fix stats related grafana panel (#50834) 2024-02-07 14:16:15 +00:00
f5e0799dd7 *: store db ID in model.TableInfo and move SchemaByTable method out from InfoSchema (#50917)
ref pingcap/tidb#50959
2024-02-07 05:07:15 +00:00
0c64e4a472 statistics: implement stringer for analysis job (#50964)
ref pingcap/tidb#50132
2024-02-05 07:55:13 +00:00
69917c07b0 *: avoid thundering herd problem when timeout the stats sync load (#50956)
close pingcap/tidb#50957
2024-02-04 08:41:49 +00:00
c6d727054a infoschema: remove some redundant methods from InfoSchema (#50916)
ref pingcap/tidb#50959
2024-02-04 08:41:42 +00:00
1befe9855d executor: record the index usage on a the whole table (#50816)
close pingcap/tidb#50814
2024-02-02 07:25:54 +00:00
35a7c9e2f7 statistics: add refresher (#50845)
ref pingcap/tidb#50132
2024-02-02 05:27:25 +00:00
556c0d46d1 statistics: do not need to introduce another test flag (#50813)
ref pingcap/tidb#40791
2024-01-30 07:06:23 +00:00
7087f702e1 executors: record the index usage in each executors (#50643)
close pingcap/tidb#50261
2024-01-30 03:51:22 +00:00
25f44f577d statistics: extract functions and add comments (#50773)
ref pingcap/tidb#40791
2024-01-30 02:45:23 +00:00
f33418d195 statistics: better fail reason for killed analyze job (#50780)
close pingcap/tidb#50481
2024-01-29 10:21:22 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
1a0b7ffa2e *: Bounds Check Elimination for cm sketch (#50764)
close pingcap/tidb#50766
2024-01-28 15:03:21 +00:00
301d1d2048 statistics/handle/usage: modify the SessionIndexUsageCollector to implement new index usage design (#50050)
close pingcap/tidb#49835
2024-01-22 14:40:50 +00:00
7b48fecc64 planner: increase the upper limit for analyze (#50600)
close pingcap/tidb#50597
2024-01-19 12:37:48 +00:00
34f48181b5 statistics: make the analysis job executable (#50499)
ref pingcap/tidb#50132
2024-01-19 09:07:48 +00:00
897c45b0e0 statistics/handle/usage: add a collector utility based on channel to collect stats from sessions (#50437)
close pingcap/tidb#50416
2024-01-17 09:49:46 +00:00
1ad36eb0ef statistics: fix missing nil check for mv index (#50313)
close pingcap/tidb#50298
2024-01-11 11:28:54 +00:00
3da5e78ff3 feat: add interval util functions for priority queue (#50035) 2024-01-10 10:54:24 +00:00
f0a4104fb0 statistics: move ExecAutoAnalyze into the exec package (#50188)
ref pingcap/tidb#50132
2024-01-08 13:57:24 +00:00
9b0fd9ea29 *: renaming variables/structs to improve readability / decrease confusion (#49989)
close pingcap/tidb#49988
2024-01-06 02:58:51 +00:00
b23b0435b1 statistics: add basic analysis job queue (#50126)
ref pingcap/tidb#50132
2024-01-05 14:30:22 +00:00
7e83932f13 statistics: avoid allocating the memory when to auto analyze with pseudo table (#50099)
close pingcap/tidb#50100
2024-01-05 08:17:04 +00:00
bf166d9c5d planner, statistics: support estimation for mv index access path (#49852)
close pingcap/tidb#46539
2024-01-05 06:51:34 +00:00
05c571b32d statistic: support fine-grained dump/load statistics (#49973)
ref pingcap/tidb#49627
2024-01-03 11:56:01 +00:00
ee0045960b statistics: BCE for the async global stats (#49997)
close pingcap/tidb#50030
2024-01-03 10:29:10 +00:00
36cafb2307 statistics: remove useless code (#49206) 2023-12-28 16:30:28 +00:00
e04d7a8aec statistics: BCE for BinarySearchRemoveVal (#49871)
close pingcap/tidb#49876
2023-12-28 07:22:58 +00:00
3b41717afc statistics: do not use the infoSchema from domain directly (#49822) 2023-12-28 04:11:06 +00:00
063228660d statistics: do not get partition stats again and again (#49828) 2023-12-27 09:33:35 +00:00
1fb5a9ae14 planner: a better way to round scale factor when collecting TopN stats (#49808)
close pingcap/tidb#49801
2023-12-27 03:10:57 +00:00
a7ef915052 *: upgrade rules_go (#49693) 2023-12-27 02:15:28 +00:00
5f6ef18b7d statistics: BCE for the histogram (#49749)
close pingcap/tidb#49750
2023-12-26 08:30:35 +00:00
2f782b7847 statistics: add better comments to UpdateStatsMetaVersionForGC (#49746) 2023-12-25 06:59:03 +00:00
87f1a4a0cb statistics: add comments to reuse the memory (#49748) 2023-12-25 05:39:26 +00:00
015efa7e9f statistics: fix bad sql with many interrupted analyze jobs (#49722)
close pingcap/tidb#49724
2023-12-22 11:46:55 +00:00
98236ca0f7 statistics: drop old stats meta after truncate a table (#49664)
close pingcap/tidb#49663
2023-12-22 07:05:02 +00:00