Commit Graph

432 Commits

Author SHA1 Message Date
3a097611cc planner: handle histogram last bucket end value underrepresented (#62695)
close pingcap/tidb#62665
2025-08-02 19:33:51 +00:00
tpp
39c35fc9d9 planner: Use NDV from the sample for TopN/Buckets (#62094)
ref pingcap/tidb#61792
2025-07-30 23:22:46 +00:00
de1f87f7bf domain: log warning when killing auto analyze processes that exceed the time window (#61434)
ref pingcap/tidb#59939
2025-07-30 14:05:37 +00:00
5ac83b6bc5 statistics: prevent deadlock in SaveAnalyzeResultToStorage by adding a fake table ID for concurrent updates (#62327)
close pingcap/tidb#62069
2025-07-26 10:55:21 +00:00
1ea1db40cd infosync: move server info sync part of structs out to a separate pkg (#62609)
ref pingcap/tidb#61702
2025-07-25 07:46:59 +00:00
433b3710fa planner: use addedRows for out of range and add skew risk ratio (#62363)
ref pingcap/tidb#62093
2025-07-25 02:13:13 +00:00
ad4f3ea0f7 bootstrap: refactor the system tables/dbs creation (#62540)
ref pingcap/tidb#61702
2025-07-23 05:07:17 +00:00
tpp
6bc897846c planner: Fix flaky testglobalstatsandsqlbinding (#62512)
close pingcap/tidb#62513
2025-07-19 10:55:48 +00:00
0fc2d8bfd8 tests: add create index realtikv test for next_gen (#62326)
ref pingcap/tidb#61702
2025-07-18 07:16:24 +00:00
3d7650d9fb planner: remove the test of manually setting cost v2 (#62493) 2025-07-18 06:24:57 +00:00
1f24032d4e planner: add check for skew risk ratio within a bucket (#62358)
ref pingcap/tidb#62093
2025-07-16 23:57:24 +00:00
a7c824dfe0 executor: update stats table row cache in batch (#62042)
close pingcap/tidb#62020
2025-07-11 02:32:21 +00:00
81370d4c72 planner: add skew risk ratio for range pred (#62035)
close pingcap/tidb#62093
2025-07-07 20:32:30 +00:00
0cd280bbd2 meta: unify definition of system or memory DB name (#62247)
ref pingcap/tidb#61702
2025-07-07 19:17:48 +00:00
063fa72687 planner: lift the can-push-to-cop check of aggregation/proj (#62068)
ref pingcap/tidb#62006
2025-07-03 13:35:00 +00:00
b8063d54f3 domain, executor: attach stats collector for IMPORT INTO sessions (#61849)
close pingcap/tidb#61922
2025-07-01 07:50:45 +00:00
02757471f1 statistics, lightning: remove useless code (#62004) 2025-06-26 03:07:36 +00:00
1abbbf02de session: rename GetDomainInfoSchema to GetLatestInfoSchema (#61894)
ref pingcap/tidb#61702
2025-06-23 10:09:21 +00:00
tpp
e5e4306050 planner: Fix flaky TestGlobalStatsAndSQLBindingWithConcurrency (#61902)
close pingcap/tidb#61901
2025-06-21 00:32:09 +00:00
tpp
f77056099f planner: ensure topN counts adjust for samplefactor (#61637)
close pingcap/tidb#61609
2025-06-13 03:54:55 +00:00
64a25c795b statistics: internal sql must have invalid stats (#61603)
close pingcap/tidb#61601
2025-06-10 04:06:46 +00:00
96161fce85 *: Unify the promethus metrics creation process (#61527)
ref pingcap/tidb#60864, close pingcap/tidb#61526
2025-06-06 10:24:49 +00:00
tpp
10296d1d1c planner: Only count all topn when necessary (#61421)
ref pingcap/tidb#61339
2025-06-03 18:11:35 +00:00
fa3c79b408 br: enable parallel restore (#58724)
close pingcap/tidb#58725
2025-06-03 02:36:14 +00:00
5c86ca816c statistics: the totalCount/minCount of TopN is calculated only once (#61340)
close pingcap/tidb#61339
2025-05-28 02:10:55 +00:00
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