Commit Graph

93 Commits

Author SHA1 Message Date
d6d0ce7b10 *: gofmt code for adapting go 1.19 (#36832)
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
fcbf9735a3 statistics: batch insert topn and buckets to storage to speed up loading stats (#36948)
close pingcap/tidb#36947
2022-08-10 18:32:48 +08:00
be102a3d55 *: fix timestamp conversion (#36705)
close pingcap/tidb#36707
2022-07-29 19:05:12 +08:00
d00b984f4c executor, statistics: analyze use MaxUint64 ts to read data (#35232)
close pingcap/tidb#35233
2022-07-20 16:09:08 +08:00
1a9a7a614c statistics,planner: let index support sync stats (#35879)
ref pingcap/tidb#35764
2022-07-11 17:23:05 +08:00
55aea2787d *: use pdqsort to improve sort performance (#34404)
close pingcap/tidb#34250
2022-07-06 13:41:02 +08:00
65e0b8e541 client: KV requests with source label (#34833)
close pingcap/tidb#33963
2022-07-01 19:46:39 +08:00
8401fa0263 statistics: remove unused fmsketch param (#35095)
ref pingcap/tidb#35094
2022-06-01 13:58:27 +08:00
0cf93b5f51 statistics: revise SaveStatsToStorage param (#34855)
ref pingcap/tidb#34052
2022-05-23 16:38:46 +08:00
ad2ce1de83 statistics: DumpIndexUsageToKV use batch insert to reduce cost (#33981)
close pingcap/tidb#33980
2022-04-26 22:44:51 +08:00
0c17a9acda statistics: make order random when looking for need-analyze table (#34196)
ref pingcap/tidb#34207
2022-04-26 19:44:51 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28: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
ebdc78463a statistics: introduce cache interface for statsCache (#34061)
* fix

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

* fix

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

* fix

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

* fix test

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

* fix test

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

* fix test

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

* support forward dumpfile request

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

add log

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

add log

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

add log

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

add log

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

fix get topo

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

revise log

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>

fix lint

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

revise handle error

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

revise handle error

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>

* fix lint

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

* remove limit

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

* introduce interface

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

* introduce tableMemUsage

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

* add comments

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

* add comments

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>

* address the comment

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

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-04-20 15:06:59 +08:00
9b9051f113 statistics: fix data race in HandleUpdateStats (#33260)
ref pingcap/tidb#32867, ref pingcap/tidb#33001, close pingcap/tidb#33108
2022-03-25 15:02:33 +08:00
62e20780e8 *: kill auto analyze (#31724)
close pingcap/tidb#32808
2022-03-07 13:49:48 +08:00
fc6b939ecc planner: introduce historical meta stats auto-dump (#32041)
ref pingcap/tidb#18745
2022-03-03 19:05:47 +08:00
c102b6b25a statistics: fix data race (#32448)
close pingcap/tidb#32426
2022-02-18 16:07:40 +08:00
4548f12b1c *: clean sqlexec in statistics handle (#32282)
close pingcap/tidb#32238
2022-02-16 16:55:39 +08:00
10a721a4f7 statistics: remove the deltaMap when dump to stats_histograms fail (#32300)
close pingcap/tidb#32299
2022-02-14 16:07:38 +08:00
8085c99ddf *: implement analyze predicate columns (#30816)
close pingcap/tidb#31102
2021-12-30 15:45:50 +08:00
088a2444df *: persist analyze options for manual and auto analyze (#30939) 2021-12-30 00:39:49 +08:00
fb03dacbca *: periodically dump column stats usage into disk (#31072) 2021-12-28 21:27:51 +08:00
daf525a17e *: replace compareDatum by compare, range part (#30710) 2021-12-16 19:48:36 +08:00
2f42f7c0f6 planner: unify the argument of stats functions to use SessionCtx instead of StatementContext (#30668) 2021-12-14 19:36:35 +08:00
ac25e9f04c statistics: add mutex for Handle.globalMap and Handle.feedback (#30550) 2021-12-14 18:22:35 +08:00
7aa86cc96a *: Enable gosec for implicit memory aliasing in for loop (#28996) 2021-11-19 20:07:48 +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
86b37d45d1 statistics: fix incomplete auto analyze log information (#29189) 2021-10-28 19:54:49 +08:00
04e661095c planner, statistics, sessionctx: add variable to enable/disable the outdated statistics to pseudo logic (#28554) 2021-10-28 11:28:48 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
9f094cc865 statistics: fix auto analyze triggered out of specified time (#28703) 2021-10-11 17:53:25 +08:00
490b5c63d1 statistics: skip build statistics for view in auto analyze (#27866) 2021-09-08 21:38:58 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
cb65b7a2f7 statistics: improve out-of-range estimation strategy (#26502) 2021-08-02 17:43:08 +08:00
4eeff54d85 statistics: fix the fomula for checking outdated stats (#26728) 2021-07-29 22:34:17 +08:00
50ae2d8266 statistics: trigger auto-analyze based on histogram row count (#24382) 2021-07-28 18:02:17 +08:00
95a40ac3d4 planner: fix the unstable unit test TestAnalyzeIncremental (#26460) 2021-07-23 14:16:14 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
11716e7f4a *: use full sampling as default analyze (#25132) 2021-06-06 00:34:27 +08:00
66ad36ee10 planner, executor, statistics: support correlation calc for new sampling method (#24458) 2021-05-25 23:57:34 +08:00
xhe
bfdad7c752 *: milisecond test and infoschema fix (#24820) 2021-05-24 18:27:34 +08:00
3fed33fc17 statistics: dump FMSketch to KV only for partition table with dynamic prune mode (#24453) 2021-05-11 12:47:38 +08:00
xhe
5e9e0e6e37 *: consitent get infoschema (#24230) 2021-05-10 21:00:36 +08:00
42141084fe statistics: fix auto analyze log information incomplete (#23522) 2021-03-25 15:51:23 +08:00
6d258c708a statistics: delete extended stats cache item in current tidb synchronously (#23088) 2021-03-12 12:00:55 +08:00
168ef8878d statistics: test the auto analyze and feedback for the global-level stats (#23181) 2021-03-10 19:36:55 +08:00
b6db4506dc statistics: update the count and modify variables of global-stats as well when dumping delta info (#23228) 2021-03-10 16:24:55 +08:00
579cf90afa statistics: fix a case that auto-analyze is triggered outside its time range (#23214) 2021-03-09 21:44:54 +08:00