Commit Graph

850 Commits

Author SHA1 Message Date
db68a1222e staistics: fix load stats from old version json (#42967)
close pingcap/tidb#42931
2023-04-12 19:57:01 +08:00
a1338453c8 statistics: refine index/column stats methods (#42910)
ref pingcap/tidb#42160
2023-04-12 00:27:01 +08:00
86f215d8f5 planner: plan cache can be aware of statistics changes (#42921)
ref pingcap/tidb#36598
2023-04-11 19:35:00 +08:00
e942ab6148 kazel: support auto-config shard_count (#42751)
close pingcap/tidb#42827
2023-04-06 15:46:58 +08:00
f907e5aa5f statistics: rename Table.Count to Table.RealtimeCount (#42764)
ref pingcap/tidb#42160
2023-04-04 05:38:57 +08:00
1d36047a47 ddl: Add the correct partitions to avoid error in updateGlobalStats (#42523)
close pingcap/tidb#42180
2023-03-24 06:42:42 +08:00
3c942f7e10 bazel: set short timeout as 120s (#42396) 2023-03-22 01:50:42 +08:00
56412f514e planner: revert #41996 due to an execution plan regression in JOB workload (#42362)
close pingcap/tidb#42351
2023-03-17 21:03:30 +08:00
5aceb2e525 expression: support ilike function (#40942)
close #40943
2023-03-17 13:37:15 +08:00
471c084017 planner, sessionctx: add variable to control index selection for "WHERE b ORDER BY a LIMIT n" (#42116)
close pingcap/tidb#42060
2023-03-16 01:52:41 +08:00
e264615674 planner: add an upper bound for estimated row count of inner side of index join (#41996)
ref pingcap/tidb#31316
2023-03-14 21:40:38 +08:00
c19cae6cba statistics: fix DATA RACE in the TestInitStatsVer2 (#42123)
close pingcap/tidb#42122
2023-03-13 17:14:41 +08:00
145b7cdf72 statistics: remove unused indexStatsFromStorage and columnStatsFromStorage (#42077)
ref pingcap/tidb#40624, ref pingcap/tidb#40791
2023-03-11 12:13:13 +08:00
cdab35847f statistics: fix unnecessary index fmsketch loading (#42074)
close pingcap/tidb#42052
2023-03-10 17:03:13 +08:00
fd45f737cc statistics: fix wrong column stats loading after analyze twice (#42076)
close pingcap/tidb#42073
2023-03-10 14:15:13 +08:00
60eceff04a statistics/handle: use StatementContext with TimeZone in initStatsBuckets4Chunk (#41993)
close pingcap/tidb#41938
2023-03-08 12:03:12 +08:00
24ff3f4db3 statistics: avoid fmsketch calculation for single-column index (#41931)
ref pingcap/tidb#41930
2023-03-06 19:11:19 +08:00
723526708d metrics: attach const label keyspace_id (#41693)
close pingcap/tidb#41698
2023-03-04 00:03:10 +08:00
96e345d1b3 statistics: use histogram buckets bounds to enhance string match functions estimation (#40338)
ref pingcap/tidb#36209
2023-02-28 22:09:09 +08:00
bf9f6c6096 statistics/handle: fix trigger auto analyze for partition table after adding index (#41639)
close pingcap/tidb#41638
2023-02-22 11:59:06 +08:00
e0620da22f statistics: improve test to make test more fast (#41403)
ref pingcap/tidb#41377
2023-02-14 21:10:01 +08:00
696d7d06e9 *: REORGANIZE PARTITION (#38535) (#41096)
close pingcap/tidb#38535
2023-02-11 20:28:00 +08:00
09d3fa9d88 txn: Fix the issue that analyze panics when aggressive locking is enabled globally (#41196)
close pingcap/tidb#41194
2023-02-09 10:19:59 +08:00
ae6054242e ddl: forbid tiflash while enabling API v2 (#41167)
ref pingcap/tidb#41166
2023-02-09 01:41:59 +08:00
6f45f81f3d statistics/handle: refine the condition of dumping stats delta (#41133)
ref pingcap/tidb#36004, ref pingcap/tidb#38189, ref pingcap/tidb#39785
2023-02-07 22:55:58 +08:00
52e5a7bf3e statistics/handle: remove unnecessary h.mu.Lock (#41153) 2023-02-07 19:03:58 +08:00
7fb79b5091 handler: fix duplicated log of unanalyzed table for historical stats (#41129) 2023-02-07 15:15:58 +08:00
98c22c1e32 statistics: use histogram count rather than realtime count to calculate stats healthy (#41031) 2023-02-03 16:11:57 +08:00
58468bf399 statistics: move TableStatsFromStorage out of handle (#40822)
ref pingcap/tidb#40624, ref pingcap/tidb#40791
2023-02-02 19:43:56 +08:00
6e56bf717c ddl, statistics: fix stats meta missing when creating many tables at once (#38301)
close pingcap/tidb#36004, close pingcap/tidb#38189
2023-02-02 18:49:56 +08:00
bdc2f1b22f handle: support fallback for dump historical stats (#40889)
close pingcap/tidb#40890
2023-02-01 17:47:56 +08:00
91686a3060 executor: add historical stats test and make it enabled (#40664) 2023-01-30 21:45:54 +08:00
fe4a81df82 sessionctx: add validation for tidb_enable_plan_replayer_continues_capture (#40787) 2023-01-29 17:15:54 +08:00
187cafce59 statistics: move statsReader out of statistics/handle (#40790)
ref pingcap/tidb#40624, ref pingcap/tidb#40791
2023-01-28 17:13:53 +08:00
f7d35abd12 domain: use enhanced waitGroupWrapper in domain #40606 (#40626)
ref pingcap/tidb#40330
2023-01-17 20:03:49 +08:00
b9fb22d5bf statistics: fix data race in the Handle.IsTableLocked (#40572)
close pingcap/tidb#40567
2023-01-17 09:13:48 +08:00
1083f79f51 handle: use separete ctx for initStats (#40604)
close pingcap/tidb#40548
2023-01-16 18:23:48 +08:00
8af12508ae statistics: fix a calculation logic flaw in (*Index).GetRowCount (#40522)
ref pingcap/tidb#39593
2023-01-13 01:39:46 +08:00
2f13578ec5 statistics: fix estimation error when ranges are too many and modify count is large (#40472)
* fix

* fmt

* bazel update

* update test result

Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 18:30:34 +08:00
668881fac5 executor: add partition table testcase for historical stats (#40453)
* add partition table testcase

* add partition table testcase

* fix lint

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 15:46:33 +08:00
3cb091ba18 statistics: change the upper bound of the out-of-range estimation to modify count | tidb-test=pr/2012 (#39011)
close pingcap/tidb#39008
2023-01-10 15:26:23 +08:00
4a8006cad2 planner: fix panic during starting tidb-server if creating global binding for partition table (#40402)
* fix

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-09 13:18:27 +08:00
d0272703f3 statistics: support historical stats dump partition table (#40310) 2023-01-05 11:52:20 +08:00
f483b39c34 metrics: add metrics for plan replayer and historical stats (#40271) 2023-01-04 10:50:20 +08:00
fc241b294e domain: revise plan replayer process log (#40126) 2022-12-26 20:02:15 +08:00
014159df0a statistics: fix incorrect datetime value when loading stats (#40084)
close pingcap/tidb#39336
2022-12-23 17:40:14 +08:00
5fdd3bd56a server: support download plan replayer continues capture file (#40085) 2022-12-22 17:42:54 +08:00
79b4e63678 *: fix auto analyze worker crash when killed by global memory limit (#39946)
close pingcap/tidb#39947
2022-12-15 15:38:52 +08:00
0f95a5a4b3 domain, statistics: periodically update stats healthy distribution (#39739)
close pingcap/tidb#39349
2022-12-15 12:14:52 +08:00
388e008846 statistics: add source column for stats_meta_hisotry table (#39835) 2022-12-14 14:38:52 +08:00