Commit Graph

275 Commits

Author SHA1 Message Date
f7eba7e35e statistics: add AnalysisPriorityQueueV2 (#56335)
ref pingcap/tidb#55906
2024-09-27 10:52:22 +00:00
f75100c36e statistics: extract the common function to rebuild the queue (#56251)
ref pingcap/tidb#55906
2024-09-26 12:12:46 +00:00
9129323378 *: Deprecate tidb_enable_table_partition and always set to ON (#56190)
close pingcap/tidb#56189
2024-09-25 12:29:34 +00:00
75d9830bd2 *: AnalyzeV2 supports processing special global indexes (#56115)
close pingcap/tidb#54233
2024-09-25 06:34:50 +00:00
0442c68e1c *: Deprecated and always set to ON tidb_enable_global_index (#56169)
ref pingcap/tidb#45133
2024-09-24 22:59:43 +00:00
05cff08c42 statistics: add the SetIndicators API (#56248)
ref pingcap/tidb#55906
2024-09-24 11:54:57 +00:00
92d45d54f1 test: Add auto-analyze priority calculator test suite (#55683)
close pingcap/tidb#55682
2024-09-20 13:47:03 +00:00
68fdf55d94 *: rename some packages of context (#56108)
close pingcap/tidb#56107
2024-09-19 07:11:03 +00:00
5709ba4357 statistics: add an analysis job factory (#56073)
ref pingcap/tidb#55906
2024-09-14 12:11:25 +00:00
3688a2b2b8 statistics: do not depend on table information when calculating the table size (#56036)
ref pingcap/tidb#55906
2024-09-14 09:35:07 +00:00
b9a7d35b82 statistics: add for update into write to avoid inaccurate results (#56055)
close pingcap/tidb#56062
2024-09-13 17:48:55 +00:00
162de160ae statistics: remove useless sessionctx (#56069) 2024-09-13 11:13:18 +00:00
027f01b7ef br: migrate pitr id map to the system table mysql.tidb_pitr_id_map (#55871)
ref pingcap/tidb#55870
2024-09-13 07:28:59 +00:00
8fb9eed991 ddl: move SchemaChangeEvent related code to a package (#56035)
ref pingcap/tidb#55722
2024-09-12 09:39:02 +00:00
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