Commit Graph

261 Commits

Author SHA1 Message Date
ebf3146857 statistics: fix the error that init stats might got failure when decoding column bucket (#55685)
close pingcap/tidb#55684
2024-09-11 15:43:27 +00:00
2ea3542218 ddl, stat: switch to new struct for remove partition, flash back and remove DDLEvent (#55973)
ref pingcap/tidb#55723
2024-09-11 05:43:58 +00:00
aad3f7ad0f statistics: reorder key and value generic parameters of the heap (#55974)
ref pingcap/tidb#55906
2024-09-10 08:30:56 +00:00
ea6dba8e7a ddl, stat: switch to new struct for exchange/reorg/add partition (#55944)
ref pingcap/tidb#55723
2024-09-10 04:24:42 +00:00
df1c21e6f1 statstics: increase the synchronization offset size when to sync stats (#55943)
ref pingcap/tidb#54552
2024-09-09 10:41:17 +00:00
de0dcc0860 ddl, stat: switch to new struct for drop table, add/modify column (#55912)
ref pingcap/tidb#55723
2024-09-09 10:41:08 +00:00
95527cd700 statistics: use analysis worker to run analysis jobs (#55848)
close pingcap/tidb#55618
2024-09-09 03:04:27 +00:00
dd1808364a planner: fix incorrect estRows with global index and json column (#55842)
close pingcap/tidb#55818
2024-09-06 12:08:39 +00:00
4dc8f3d333 ddl, stat: switch to new struct for add/truncate/drop partition (#55893)
ref pingcap/tidb#55723
2024-09-06 10:22:23 +00:00
c90168e207 ddl, stats: switch to new struct for create/truncate table (#55811)
ref pingcap/tidb#55723
2024-09-05 12:04:04 +00:00
4afaecf8f7 statistics: remove useless function (#55815) 2024-09-04 13:20:02 +00:00
638c05f870 statistics: add the analysis worker (#55775)
ref pingcap/tidb#55618
2024-09-04 08:37:18 +00:00
3176b9c263 *: move XXInfo/Job, etc, out from model pkg in parser to meta (#55754)
ref pingcap/tidb#54436
2024-09-04 04:49:45 +00:00
c72154236c statistics: prevent columns not present in the information schema from affecting the final result (#55730)
close pingcap/tidb#55713
2024-09-02 12:02:34 +00:00
b664234927 ddl: init new struct SchemaChangeEvent to replace the DDLEvent (#55758)
ref pingcap/tidb#55723
2024-08-30 12:22:58 +00:00
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