Commit Graph

248 Commits

Author SHA1 Message Date
d0272703f3 statistics: support historical stats dump partition table (#40310) 2023-01-05 11:52:20 +08:00
388e008846 statistics: add source column for stats_meta_hisotry table (#39835) 2022-12-14 14:38:52 +08:00
1f04e14bef domain: support dump historical stats in background job (#39417) 2022-12-01 13:04:01 +08:00
4a91a24b28 executor: add debug log for analyze (#39357) 2022-11-24 16:19:59 +08:00
238caf6571 *: add statistic lock/unlock function (#38387) 2022-11-11 22:25:54 +08:00
49e7c700ef executor: support checking killed during merge stats (#38708)
ref pingcap/tidb#35142
2022-11-02 12:43:59 +08:00
c3ecb04875 executor: support record analzye merge job (#38672)
ref pingcap/tidb#35142
2022-10-27 17:05:57 +08:00
70f3348ebf executor: support save partition stats in concurrency (#38239)
ref pingcap/tidb#35142
2022-10-25 15:57:55 +08:00
0d8af9436a executor: fix flaky TestDefaultValForAnalyze (#37576)
close pingcap/tidb#36341
2022-09-02 18:16:25 +08:00
bf23ee9090 executor: invalidate infoschema's stats cache after analyze (#32803)
close pingcap/tidb#32693
2022-08-03 22:00:05 +08:00
9a388e36c1 executor, statistics: directly update count if analyze reads latest data (#36588)
close pingcap/tidb#36552
2022-07-27 18:11:11 +08:00
65e0b8e541 client: KV requests with source label (#34833)
close pingcap/tidb#33963
2022-07-01 19:46:39 +08:00
712e51ae4f executor: separte analyze v1/v2 code for for analyzeExec (#35312)
ref pingcap/tidb#35200
2022-06-17 19:36:36 +08:00
961aadd75a executor: refactor analyze executor (#35201)
* refactor analyze

Signed-off-by: yisaer <disxiaofei@163.com>

fix lint

Signed-off-by: yisaer <disxiaofei@163.com>

fix lint

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-06-09 11:47:11 +08:00
bba94f97e7 statistics: fix incorrect ndv caused by missing fmsketch (#35082)
close pingcap/tidb#35044
2022-06-01 12:56:27 +08:00
0cf93b5f51 statistics: revise SaveStatsToStorage param (#34855)
ref pingcap/tidb#34052
2022-05-23 16:38:46 +08:00
d3185cc796 executor, statistics: drop the samples whose length is too long (#32536)
close pingcap/tidb#31726, ref pingcap/tidb#32535
2022-05-19 14:26:39 +08:00
2cf1354f72 *: global stats consistency for dynamic prune (#34695)
close pingcap/tidb#34730
2022-05-19 11:34:38 +08:00
828a255111 infoschema: adjust column type for information_schema.analyze_status (#34705)
close pingcap/tidb#34706
2022-05-18 00:42:37 +08:00
50f3d8faf8 *: retry auto-analyze with adjusted samplerate when oom panic (#34387)
close pingcap/tidb#29938
2022-05-11 18:08:34 +08:00
218247e80e *: improve stack message in the panic log (#34564)
close pingcap/tidb#34356
2022-05-11 16:34:34 +08:00
a58e519055 *: change mysql.analyze_jobs.instance column type (#34542)
close pingcap/tidb#34543
2022-05-11 11:14:34 +08:00
33236ba8d7 *: track analyze memory usage separately with quota (#33054)
ref pingcap/tidb#29938, close pingcap/tidb#33065
2022-05-10 20:32:35 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
42089cd9e3 statistics: separte Get/Put according to query for statsCacheInner (#34211)
ref pingcap/tidb#34052
2022-04-28 18:04:52 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
fb342ff861 topsql: fix issue of topsql failed catch the running SQL when topsql is enabled in execution (#33861)
close pingcap/tidb#33859
2022-04-26 13:16:51 +08:00
a5033d14d0 *: use global auto analyze ID in order to kill auto analyze globally (#34075)
close pingcap/tidb#34076
2022-04-20 17:58:03 +08:00
1d485d11ed topsql: fix admin check/cleanup/recover statement doesn't set tag for RPC request (#33869)
close pingcap/tidb#33716
2022-04-13 18:00:36 +08:00
0f4706418e *: track cluster-level analyze jobs and make it persistent (#32215)
close pingcap/tidb#32403
2022-03-31 21:06:29 +08:00
41fb3e75a5 util: fix unstable test in the TestNotifyErrorWaitGroupWrapper (#33063)
close pingcap/tidb#33062
2022-03-15 23:05:52 +08:00
0cd9b243ce executor: fix data race in the AnalyzeColumnsExec (#32979)
close pingcap/tidb#32978
2022-03-14 11:53:51 +08:00
405ea4fb7b executor: add testcases for kill auto analyze (#32582)
close pingcap/tidb#32911
2022-03-09 21:57:49 +08:00
2e1cff73f3 *: add ExecRestrictedSQL() func for RestrictedSQLExecutor interface (#31618)
ref pingcap/tidb#30918
2022-01-24 21:30:11 +08:00
4bda04f15c planner: introduce historical statistic dumping triggered by analyze (#31032)
close pingcap/tidb#18745
2022-01-21 16:35:46 +08:00
5cd37f0008 session: fix data race in ParseWithParamsInternal (#31058)
close pingcap/tidb#30918
2022-01-06 21:02:37 +08:00
088a2444df *: persist analyze options for manual and auto analyze (#30939) 2021-12-30 00:39:49 +08:00
fe1aaf2fd7 topsql: introduce stmtstats and sql execution count (#30277) 2021-12-21 15:43:47 +08:00
23c71f1a3b execute: don't transform charset in internal sql (#30843)
close pingcap/tidb#30789
2021-12-20 17:15:46 +08:00
daf525a17e *: replace compareDatum by compare, range part (#30710) 2021-12-16 19:48:36 +08:00
b11171aa71 topsql: distinguish the row and index operation type (#29044) 2021-11-24 10:17:51 +08:00
cf12389be1 executor: fix data race with RandSeed (#29965) 2021-11-22 11:37:49 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
b1efb13296 *: implement analyze columns c1, ..., cn (#29024) 2021-10-29 11:28:49 +08:00
2ba75e4af5 statistics: introduce bernoulli sampling method (#28999) 2021-10-28 12:52:49 +08:00
d53f9f55a0 executor,distsql: fix analyze version 2 memory leak (#28729) 2021-10-12 19:49:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
f710f3d9a3 executor: support selecting store by tidb_replica_read for stale read (#28033) 2021-09-15 14:52:41 +08:00
bc5c912f85 statistics: some refactoring about stats collector (#26583) 2021-08-18 01:39:59 +08:00
d06fd67764 statistics: fix "data too long" error when dumping stats from table with new collation data (#27033) 2021-08-17 16:02:00 +08:00