Commit Graph

246 Commits

Author SHA1 Message Date
87244edabf statistics: fix sync load fails after disabling lite init stats (#54531)
close pingcap/tidb#54532
2024-08-27 13:21:16 +00:00
e72089d01c statistics: fix a data race in auto-analyze (#55501)
ref pingcap/tidb#53460
2024-08-22 10:43:43 +00:00
tpp
f2c278ddc6 Planner: Do not allow cardinality to go below 1 (#55242)
close pingcap/tidb#47400
2024-08-20 12:00:12 +00:00
adc7597a35 *: replace maps.Copy which is for map clone with std maps.Clone (#55530)
close pingcap/tidb#55527
2024-08-20 11:19:49 +00:00
f272707509 *: support concurrent auto analyze (#54432)
close pingcap/tidb#53460
2024-08-16 09:13:12 +00:00
cde560352a *: fix flaky test TestRecordHistoryStatsAfterAnalyze (#55365)
close pingcap/tidb#55364
2024-08-12 12:52:38 +00:00
2fb61a5eb2 *: Require GLOBAL IndexOption for creating Global Index (#55264)
close pingcap/tidb#52994
2024-08-12 12:52:31 +00:00
876268f619 *: add ctx parameter to infoschema TableByID (#55329)
ref pingcap/tidb#50959
2024-08-09 10:42:47 +00:00
4d384d3135 planner: add protection to avoid setting tot_col_size to negative numbers (#55327)
close pingcap/tidb#55126
2024-08-09 10:42:40 +00:00
fd3ad810ae *: support to query init stats percentage from http api (#55323)
close pingcap/tidb#53564
2024-08-09 08:36:49 +00:00
b066365ef3 *: kill auto analyze out of the auto analyze time windows (#55062)
close pingcap/tidb#55283
2024-08-09 05:35:12 +00:00
686f8bc383 statistics: move history-related functions into the stats handle (#55163)
ref pingcap/tidb#55043
2024-08-07 09:30:40 +00:00
5aad7df941 *: use a unified session pool definition AMAP (#55170)
ref pingcap/tidb#54434
2024-08-05 12:23:08 +00:00
b59f5ecb47 statistics: add a thread-safe heap (#55064)
ref pingcap/tidb#55063
2024-07-31 16:58:21 +00:00
273ca667ab *: remove limiting process id for auto analyze (#54902)
ref pingcap/tidb#53460
2024-07-29 16:01:18 +00:00
7e73ddc91b statistics: add metrics for unneeded analyze table (#54822)
close pingcap/tidb#54823
2024-07-26 01:36:06 +00:00
6c3e25ebfe *: avoid using Tables field of model.DBInfo, use API instead (#52302)
close pingcap/tidb#52234
2024-07-25 10:57:06 +00:00
ee6434798f planner: remove useless check (#54907)
ref pingcap/tidb#54883
2024-07-25 09:54:21 +00:00
a18b3c54e9 *: remove infoschema.SchemaTables() API, replace it with SchemaTableInfos() (#54664)
ref pingcap/tidb#50959
2024-07-23 11:42:04 +00:00
cb6f913db1 br: support backup and restore column_stats_usage (#54634)
ref pingcap/tidb#53567
2024-07-19 06:12:01 +00:00
2088b342e8 planner: fix some typos (#54649) 2024-07-17 09:20:59 +00:00
1bf27af89f statistics: init LastAnalyzeVersion with snapshot timestamp (#54465)
ref pingcap/tidb#53567
2024-07-16 08:21:00 +00:00
06e0e17d98 *: fix ctrl+c can not kill tidb during statistics init (#54594)
close pingcap/tidb#54589
2024-07-15 09:26:59 +00:00
e5a8a23e83 *: enable the predicate columns feature by default (#54440)
ref pingcap/tidb#53567
2024-07-12 09:23:28 +00:00
f490a98438 *: add context.Context parameter to infoschema TableByName (#54479)
ref pingcap/tidb#50959
2024-07-09 16:04:33 +00:00
2c72c39ce0 statistics: add more comments for the histogram bucket (#54519) 2024-07-09 10:49:33 +00:00
8c1ce99065 ddl: schedule as many jobs as possible in one round, simplify sql to query jobs (#54438)
ref pingcap/tidb#54436
2024-07-09 04:39:02 +00:00
0f81cea72c config: Change tidb_opt_projection_push_down default value to true (#53831)
ref pingcap/tidb#51876
2024-07-08 08:36:03 +00:00
aeea03d21c planner: include both indexes and columns in job info (#54336)
ref pingcap/tidb#53567
2024-07-03 10:59:57 +00:00
878fa328ea statistics: update stats_history table when it meets duplicate (#54315)
close pingcap/tidb#47539
2024-07-01 07:20:57 +00:00
0d0fb4d19d planner: respect tidb_analyze_column_options when build analyze plan (#54240)
ref pingcap/tidb#53567
2024-06-28 10:57:01 +00:00
3e1ee9ec62 statsistics: unexport the Columns and Indices of HistColl (#53768)
close pingcap/tidb#53666
2024-06-27 12:53:54 +00:00
01cc0274bd stats: fix index_length in information_schema (#54176)
close pingcap/tidb#54173
2024-06-25 02:20:51 +00:00
4327c93a31 infoschema, statistics: support and use table's partition attribute filter (#54161)
ref pingcap/tidb#50959
2024-06-24 14:37:21 +00:00
fd2b5e97a1 statistics: always tracking predicate columns (#54152)
ref pingcap/tidb#53567
2024-06-24 06:56:56 +00:00
adf2df9498 statistics: remove useless code (#54158) 2024-06-21 09:32:57 +00:00
tpp
8ee4897b39 planner: reduce topn count to exclude non-skewed values (#53035)
close pingcap/tidb#53111
2024-06-19 05:37:17 +00:00
2cea9949f2 statistics: stop loading too many stats when to init stats (#53999)
close pingcap/tidb#54000
2024-06-18 04:26:46 +00:00
tpp
a8af911cf2 planner: improve range underestimation (#53860)
close pingcap/tidb#53907
2024-06-16 16:04:16 +00:00
f124165c9b statistics: update some vars for internal sessions correctly (#53977)
close pingcap/tidb#53972
2024-06-13 05:19:29 +00:00
2ee6d22383 statistics: updating stats cache can trigger evict (#53979)
close pingcap/tidb#53742
2024-06-13 04:43:29 +00:00
395edabbae statistics: not convert the database names to lowercase duration the auto analyze (#53906)
close pingcap/tidb#53905
2024-06-11 11:50:59 +00:00
a44d409064 planner, stats: assign high priority for sync load related internal SQLs (#51636)
ref pingcap/tidb#50332
2024-06-04 11:58:26 +00:00
9c1a45ab46 statistics: fix wrong NDV in the global stats when to disable async-merge-global-stats (#53762)
close pingcap/tidb#53752
2024-06-04 11:01:27 +00:00
3e8ba69e25 statistics: add counter for sync load's backgroud tasks (#53769) 2024-06-04 04:19:31 +00:00
9745a16ba6 statistics: clean up dropped predicate columns stats usage (#53680)
ref pingcap/tidb#53567
2024-05-30 10:44:51 +00:00
5e5326be79 statistics: print the process of init stats (#53560)
close pingcap/tidb#53564
2024-05-30 08:16:22 +00:00
aee176b572 statstics,ddl: fix FK table forgets to send CreateTable event (#53654)
close pingcap/tidb#53652
2024-05-29 11:27:03 +00:00
4a5197472f statistics: refactor write merge-global-stats (#53549) 2024-05-28 11:13:27 +00:00
bf704fd635 domain: make the transaction from initStatsCtx blocking gc (#53602)
close pingcap/tidb#53592
2024-05-28 10:19:28 +00:00