Commit Graph

60 Commits

Author SHA1 Message Date
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
a7fff4afc8 statistics: fix difference between BinarySearchRemoveVal and RemoveVals (#47878)
close pingcap/tidb#47887
2023-10-23 17:41:02 +00:00
2a628c4801 *: unified the cancel/kill logic in tidb (#47063)
close pingcap/tidb#47075
2023-10-23 09:48:38 +00:00
98b6c43464 statistics: move MergePartTopN2GlobalTopN into handle/globalstats (#47901)
ref pingcap/tidb#46905
2023-10-23 04:03:31 +00:00
36160d1cd1 planner: unify the way to handle txn in statshandle (#47859)
ref pingcap/tidb#46905
2023-10-20 10:39:41 +00:00
1501bf1cea *: add variable to control async merge global stats (#47806)
ref pingcap/tidb#47275
2023-10-20 08:21:30 +00:00
9b8890da70 statistics: check Killed in the GenJSONTableFromStats (#47778)
close pingcap/tidb#47779
2023-10-20 02:48:30 +00:00
6dea081b04 planner: move more methods from StatsHandle to its sub-packages (#47760)
ref pingcap/tidb#46905
2023-10-19 08:15:37 +00:00
d74298c132 statstics: correctly handle error when merging global stats (#47770)
close pingcap/tidb#47771
2023-10-19 06:51:31 +00:00
ab32fc7551 statistics: smaller task channel when to merge global stats (#47761)
close pingcap/tidb#47762
2023-10-18 15:39:28 +00:00
ac1f0d92a6 planner: move more methods from StatsHandle to its sub-packages (#47749)
ref pingcap/tidb#46905
2023-10-18 14:39:28 +00:00
aa453def0e planner: move more methods from StatsHandle to its sub-packages (#47739)
ref pingcap/tidb#46905
2023-10-18 08:43:59 +00:00
72d989d406 *: simple code (#47737) 2023-10-18 03:42:29 +00:00
aebf22d22e planner: move more methods from StatsHandle to its sub-packages (#47696)
ref pingcap/tidb#46905
2023-10-17 13:52:59 +00:00
f69f37a9fb statistics: avoid unnecessary copy at CMSketchAndTopNFromProto (#47598)
ref pingcap/tidb#47275
2023-10-17 10:27:30 +00:00
59258d9581 statistics: add log to show reason for partition table's auto analyze (#47708) 2023-10-17 09:11:10 +00:00