Commit Graph

75 Commits

Author SHA1 Message Date
9633ca1fb4 statistics: add a drop multiple partitions case (#49407)
ref pingcap/tidb#48126
2023-12-13 10:21:19 +00:00
619d5de77b statistics: update the global stats correctly after truncate a partition (#49362)
close pingcap/tidb#39681
2023-12-13 08:42:19 +00:00
24606a4084 statsitics: clear the fmsketch's map correctly (#49379)
close pingcap/tidb#49381
2023-12-12 11:58:49 +00:00
2ca712149a statistics: fix LoadStatsFromJSONNoUpdate func for CPUNum = 1 (#49375)
close pingcap/tidb#49374
2023-12-12 10:27:26 +00:00
ce9e9ef4b8 statistics: do not get stats meta from cache when handling drop partition DDL event (#49331)
ref pingcap/tidb#48126
2023-12-12 09:22:49 +00:00
9bf043bae0 statistics: fix can not record meta history issue (#49335)
close pingcap/tidb#49334
2023-12-11 09:42:18 +00:00
0e9ed6749c statistics: fix illegal bucket order when to merge global stats (#49312)
close pingcap/tidb#49023
2023-12-11 05:58:47 +00:00
0133ced136 statistics: remove useless code (#49284) 2023-12-08 11:09:16 +00:00
cc6bf2bd60 statistics: handle exchange partition event (#49043)
close pingcap/tidb#47354
2023-12-08 08:42:47 +00:00
ac20c561d0 statistics: clean corrupted analyze jobs terminated by server down (#49115)
close pingcap/tidb#35292
2023-12-08 07:13:22 +00:00
373608fe9d *: fix log for statistics (#49215)
close pingcap/tidb#49216
2023-12-06 08:14:50 +00:00
ca9f4d3fe5 statistics: fix old bucket4Merging to merge new data (#49169)
close pingcap/tidb#49168
2023-12-05 07:47:57 +00:00
af07ff6820 *: fix return 1 topn when to set 0 topn in analyzeOption (#49068)
close pingcap/tidb#49080
2023-12-01 10:08:50 +00:00
df41e204ca statistics: fix panic in the RecordHistoricalStatsToStorage (#49077)
close pingcap/tidb#49076
2023-12-01 04:01:18 +00:00
8ffde85678 statistics: fix invaild asnyc_merge_global_stats (#49042)
close pingcap/tidb#49041
2023-11-30 10:16:33 +00:00
6dcb074253 statistics: fix wrong file names (#49028) 2023-11-30 09:32:57 +00:00
d60c8e4e07 statistics: move the previous auto-analyze selection into a func (#49027) 2023-11-30 05:49:20 +00:00
94a7844732 *: add tidb_enable_global_index session variables (#48834)
close pingcap/tidb#48825
2023-11-30 02:58:18 +00:00
333e8c3de0 statistics: log the db name (#49011) 2023-11-30 00:41:47 +00:00
86df166bd3 importinto: make cancel wait task done and some fixes (#48928)
close pingcap/tidb#48736
2023-11-29 09:59:48 +00:00
f17ba4a4a1 statistics: add more test for tidb_merge_partition_stats_concurrency (#48965)
close pingcap/tidb#48713
2023-11-29 09:29:56 +00:00
c426cd947f statistics: Update stats meta count and modify count for dropped table partitions (#48929)
close pingcap/tidb#48182
2023-11-29 03:04:17 +00:00
6f2d6815f0 statistics: update outdated comments (#48950) 2023-11-29 02:23:47 +00:00
ba608a9895 statistics: add benchmark for BuildHistAndTopN with low NDV (#48961)
ref pingcap/tidb#47275
2023-11-28 09:11:46 +00:00
ebca7ba716 statistics: do not directly update global stats when dropping a partition (#48846)
ref pingcap/tidb#48182
2023-11-24 16:19:12 +00:00
4279cd6f23 *: avoid copy in the SortSampleItems (#48683)
ref pingcap/tidb#47275
2023-11-24 13:56:43 +00:00
26db590962 *: fix wrong result when to concurrency merge global stats (#48852)
close pingcap/tidb#48713
2023-11-24 03:53:42 +00:00
707f860527 util/rowcodec,tablecodec: remove stmtctx dependency from rowcodec and tablecodec (#48816)
close pingcap/tidb#48751
2023-11-23 10:19:13 +00:00
3543275dcf statistics: fix the memory tracker in the benchmark (#48831)
close pingcap/tidb#48699
2023-11-23 09:32:42 +00:00
5b8d3deef6 statistics: add daily bench and improve bench (#48824)
close pingcap/tidb#48699
2023-11-23 07:26:49 +00:00
297872a7b2 statistics: move interfaces out of the util package (#48612) 2023-11-22 09:41:51 +00:00
8de6d307e5 statistics: fix wrong result in the MergeGlobalStatsTopNByConcurrency (#48757)
ref pingcap/tidb#48713
2023-11-22 03:25:11 +00:00
b8db9a5e2b statistics: Add benchmark for BuildHistAndTopN (#48731)
ref pingcap/tidb#48699
2023-11-21 04:26:40 +00:00
3d176fcc2c util/codec,util/errctx,*: add error context, and use it to refactor util/codec (#48613)
close pingcap/tidb#48611
2023-11-20 13:53:40 +00:00
a771e8c82d statistics: add logs to facilitate debugging (#48715)
ref pingcap/tidb#48713
2023-11-20 09:58:12 +00:00
657f0d94a9 pkg: stop using math/rand.Seed (#48653) 2023-11-17 06:00:53 +00:00
ab354f3e5c tests: move more tests to integration test (#48647)
ref pingcap/tidb#45961
2023-11-17 03:42:47 +00:00
fb58ab7a02 statstics: remove useless cache (#48650)
ref pingcap/tidb#47275
2023-11-16 11:47:18 +00:00
50237bdf1d statistics: use new DDL event in stats handler (#48516)
ref pingcap/tidb#48126
2023-11-13 12:17:15 +00:00
44f943063d handle: use logutil to unify the log category (#48520) 2023-11-10 11:00:43 +00:00
ad6385ab30 statistics: avoid oom when to gc large stats_history (#48430)
close pingcap/tidb#48431
2023-11-09 10:42:53 +00:00
7eb6e61b3d statistics: Refactor code to improve readability (#48414) 2023-11-09 09:54:42 +00:00
201363d736 statistics: add new DDL event for stats handler (#48361)
ref pingcap/tidb#48126
2023-11-08 08:50:35 +00:00
8301e4e991 types,*: remove the dependency stmtctx from types package. (#48108)
close pingcap/tidb#48080
2023-11-01 11:45:44 +00:00
046b52a065 statistics: fix the wrong comments (#48183) 2023-11-01 10:09:37 +00:00
f58c8f06de statistics: add better comments for the out of range algorithm (#47966) 2023-11-01 04:56:07 +00:00
a2edc738de *: move sqlescaping from pkg/util/sqlexec to pkg/util/sqlescape (#48061)
close pingcap/tidb#48055
2023-10-31 01:45:36 +00:00
2387127ea6 statistics: better benchmark tests for merge topN (#48006) 2023-10-27 11:18:34 +00:00
6d64b7e89a types, stmtctx, *: use ZeroDate, ZeroInDate and InvalidDate related flags to replace variable in statement context (#47794)
close pingcap/tidb#47507, close pingcap/tidb#47508
2023-10-27 10:44:05 +00:00
d9d5b9c397 statistic: fix panic when building topN (#47928)
close pingcap/tidb#35948
2023-10-25 13:03:34 +00:00