Commit Graph

407 Commits

Author SHA1 Message Date
32309b9270 executor: replace logutil with statslogutil for improved logging in the analyze process (#61245)
close pingcap/tidb#59939
2025-05-22 17:13:07 +00:00
ba770fc43d *: add exptostd linter (#61014)
close pingcap/tidb#61013
2025-05-08 12:51:50 +00:00
5577bf8443 statistics: update logging in auto-analyze components to use the error verbose logger (#60845)
ref pingcap/tidb#59939
2025-05-06 07:31:33 +00:00
57a8f744a2 statistics: gopls modernize (#60778)
close pingcap/tidb#60777
2025-04-24 14:24:02 +00:00
6999c7db44 statistics: log schema not found for table in updateGlobalTableStats functions (#60730)
close pingcap/tidb#60729
2025-04-24 00:59:27 +00:00
2704b09065 statistics: batch update the stats meta and skip updating stats meta history. (#60595)
ref pingcap/tidb#60374
2025-04-23 06:13:58 +00:00
34b8a218da statistics: improve comments for empty histogram handling (#60667)
ref pingcap/tidb#60570
2025-04-22 12:39:22 +00:00
9806098a9e stats: panic in the MergePartitionHist2GlobalHist (#56676)
close pingcap/tidb#55920
2025-04-18 16:08:13 +00:00
3b2d4b7747 statistics: improve logging messages and add duration metrics for stats initialization (#60521)
ref pingcap/tidb#59939
2025-04-17 10:37:24 +00:00
9c2c27038d statistics: Simplify histogram async load with defer cleanup (#60596)
close pingcap/tidb#60598
2025-04-17 08:53:12 +00:00
25dde1c45d stats: use an alternative function to read the bound from BLOB stored in mysql.stats_buckets. (#59791)
close pingcap/tidb#59759
2025-04-15 08:57:06 +00:00
b64514e2c0 config: deprecate ConcurrentlyInitStats and make it always enabled by default (#60408)
close pingcap/tidb#60138, close pingcap/tidb#60206
2025-04-10 16:14:34 +00:00
fe3f47b1d7 stats: use GetColOriginDefaultValue to get default value of a column (#60438)
close pingcap/tidb#60194
2025-04-09 02:49:58 +00:00
1279a9ffec statistics: speed up the backgroud stats update worker (#58490)
ref pingcap/tidb#57868
2025-04-07 11:50:10 +00:00
3b0df600a5 statistics: increase batchInsertSize from 10 to 8192 for improved performance (#60405)
close pingcap/tidb#60183
2025-04-07 08:49:39 +00:00
f4b85e3540 statistics: remove invalid histogram items in loadNeededColumnHistograms and loadNeededIndexHistograms (#60318)
close pingcap/tidb#60247
2025-04-03 08:41:04 +00:00
61c09e601e build(deps): bump github.com/golangci/golangci-lint from 1.63.4 to 1.64.7 (#60029) 2025-04-03 07:44:54 +00:00
755cc34900 statistics: log DDL event handling errors and ignore them temporarily (#60302)
ref pingcap/tidb#59474, ref pingcap/tidb#60194
2025-03-28 17:17:28 +00:00
7f6df324e0 *: generalize columnar for DDL (#60244)
ref pingcap/tidb#59880
2025-03-26 08:52:25 +00:00
bc534e4a7b statistics: add warnings for missing table, column, and histogram information during async loading (#60213)
ref pingcap/tidb#59939
2025-03-26 06:52:57 +00:00
tpp
963d7e89c1 planner: Reduce topn/buckets for lower NDV (#59929)
ref pingcap/tidb#53950
2025-03-26 00:00:51 +00:00
c0aea84bb4 planner: update logging for SyncWaitStatsLoad and SubLoadWorker functions (#59978)
ref pingcap/tidb#59939
2025-03-21 07:20:27 +00:00
d406be6516 statistics: fix Clone method to include checked field in ColAndIdxExistenceMap (#60171)
close pingcap/tidb#60104
2025-03-20 09:37:18 +00:00
19c2d3366e statistics: enhance concurrency handling in stats initialization to reduce duplication (#60090)
ref pingcap/tidb#55043
2025-03-18 15:18:21 +00:00
80d6b5683c infosync: refactor server config into dynamic and static sections (#58473)
close pingcap/tidb#58405
2025-03-18 02:36:52 +00:00
388c36be8d statistics: simplify LoadAndUpdateStatsLoop and SubLoadWorker parameters (#60092)
ref pingcap/tidb#60011
2025-03-17 12:35:52 +00:00
0e150fc770 statistics: improve handling for slow stats updates and logging (#59887)
close pingcap/tidb#54552
2025-03-17 11:21:58 +00:00
d31be66186 statistics: speed up table iteration during PQ initialization (#58825)
close pingcap/tidb#57960
2025-03-14 10:50:04 +00:00
fc52e147de stats: remove useless timeout refresh and information schema reference (#60012)
close pingcap/tidb#60011
2025-03-13 13:08:27 +00:00
046e83e7fc statistics: reduce the max retry count as 1 for sync load (#60018)
ref pingcap/tidb#60017
2025-03-11 15:05:43 +00:00
tpp
ae830dc9af planner: Adjust out of range for added rows (#59724)
ref pingcap/tidb#58068
2025-03-09 14:10:05 +00:00
9fed88cc10 *: generalize some vector index logic to columnar index (#59881)
ref pingcap/tidb#59880
2025-03-07 04:21:33 +00:00
41e4903014 planner: update AnalyzeTableStmt to use NonPartitionTableID for non-partitioned tables (#59937) 2025-03-06 11:01:12 +00:00
448649e53c statistics: replace StatsLoad mutex with a dedicated mutex for statsCache protection (#59778)
ref pingcap/tidb#55043
2025-03-03 06:22:13 +00:00
2214bd07fc statistics: Remove the ineffective dirty IDs from the row count cache (#56287)
close pingcap/tidb#55803
2025-03-02 08:37:51 +00:00
72213542ea statistics: correct the bucket order when merging global hist (#59647)
close pingcap/tidb#59274
2025-02-20 19:12:57 +00:00
tpp
0fc1412390 planner: Recognize potential for correlation in subset index match (#58688)
ref pingcap/tidb#59333
2025-02-20 18:17:19 +00:00
4db34bc3e2 workload-based learning: save the metrics and create new workload_values table (#59126)
ref pingcap/tidb#58131
2025-02-20 03:58:34 +00:00
a9e69d5b52 planner: fix a estimation case when column.hist.NDV is greater than topN.num. (#59564)
close pingcap/tidb#59563
2025-02-18 21:45:02 +00:00
9f5f53a645 statistics: add Destroy method and handle session recycling (#59546)
close pingcap/tidb#59524, close pingcap/tidb#59560
2025-02-18 13:48:25 +00:00
575408dad1 stats: Supplement some comments on analyze result struct (#59596)
close pingcap/tidb#59595
2025-02-18 06:24:25 +00:00
513bfebd87 stats, infoschema: avoid some network cost of reading table meta kv (#59105)
ref pingcap/tidb#57869, ref pingcap/tidb#59104
2025-02-18 02:13:43 +00:00
6e62f56c65 ddl notifier: allow another error in CI assert (#59503)
close pingcap/tidb#59501
2025-02-13 07:50:21 +00:00
097f78db51 statstics: remove useless code (#59364) 2025-02-10 10:27:06 +00:00
eae800f8d4 statistics: remove some dead codes (#59363) 2025-02-10 10:26:59 +00:00
e4dc47f861 statistics: do not ignore DDL event handing errors (#58980)
close pingcap/tidb#58545
2025-02-10 08:57:25 +00:00
24123512f1 statistics: fix async merge global stats use cmsketch twice (#59198)
close pingcap/tidb#59194
2025-01-25 02:51:14 +00:00
41c3b01dbc statistics: BinarySearchRemoveVal should use decoded val instead of encoded (#59131)
close pingcap/tidb#59130
2025-01-23 11:11:30 +00:00
cf4d252af8 *: split definition out of variable pkg and refactor some reorg methods (#59146)
ref pingcap/tidb#57229, ref pingcap/tidb#57497
2025-01-23 09:24:44 +00:00
7cee1900b1 statistics: refactor RecordHistoricalStatsMeta to handle single table (#59127)
close pingcap/tidb#57869
2025-01-22 17:15:35 +00:00