Commit Graph

133 Commits

Author SHA1 Message Date
0859e757a2 statistics: add default value of CMSketch for Analyze (#19455) 2020-09-10 16:57:01 +08:00
2836011470 executor, planner: refactor analyze tableID to analyzeTableID & add CanRuntimePrune (#19846)
* executor, planner:  refactor analyze tableID to analyzeTableID

* *: add util to help decide whether use new runtime prune partition executor

* address comments

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-08 23:49:39 +08:00
a961a70c53 executor: fix fast analyze race condition on session ctx (#19716)
* executor:  fix fast analyze race condition on session

* unify return error

* make lint happy

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:35:21 +08:00
66de0180ca executor: fix fast analyze on single index (#19662)
* executor: fix fast analyze single index

* use idxCol.offset instead of compare column name

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-03 11:25:01 +08:00
64a5e4f377 executor: refine fast-analyze sample step in old partition (#19591) 2020-09-01 11:57:54 +08:00
43a9d77965 *: compute and save correlation extended statistics in ANALYZE (#19134) 2020-08-18 10:56:40 +08:00
07ae6078e8 *: support clustered index for fast analyze (#18767) 2020-08-07 19:22:14 +08:00
de33068d26 *: refactor NewBackoffer (#18367) 2020-07-07 14:28:43 +08:00
7c3e9d2427 *: support analyze on cluster index (#17895) 2020-06-15 10:51:33 +08:00
4e6e933f6a statistics: fix wrong hash which misses hit by query topn (#16606) 2020-04-24 17:04:12 +08:00
af376db3dc *: refactor Handle in tablecodec and rowcodec (#16705)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-23 18:55:59 +08:00
5d846cfe7d statistic: fix error when fast analyze on only indexes (#15889) 2020-04-01 18:51:15 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
0730eeca03 *: fix snapshot problem in show table status (#13797) 2019-12-05 13:26:26 +08:00
a7d5b98306 *: Move StartTs from DAGRequest to Coprocessor.Request (#13823) 2019-12-03 17:13:12 +08:00
5737729493 stats: fix panic when fast analyze on empty table (#13284) 2019-11-08 19:14:53 +08:00
b25b703c1d tikv: make region request can send to flash store (#11652) 2019-09-25 11:00:15 +08:00
e173c7f5c1 executor: add several sql hint related to session variables (#11809) 2019-09-17 13:39:16 +08:00
3fdfe2e370 stats: support display invalid key in stats buckets (#12064) 2019-09-09 17:59:11 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
3076e632c8 *: use bytes.Equal to check byte slice equivalent (#11706) 2019-08-11 17:36:20 +08:00
c9502f0667 executor: support analyze option for samples (#11609) 2019-08-06 11:38:33 +08:00
0668cae665 executor, stats: extract topn from cm sketch (#11409) 2019-07-29 19:05:19 +08:00
268cbf1a5d stats: support more analyze options (#11278) 2019-07-25 13:25:24 +08:00
eae30ebbcb *: reduce tikvrpc resp struct size (#11056) 2019-07-16 13:21:00 +08:00
d420a1f212 *: reduce tikvrpc request size (#11055) 2019-07-15 16:11:14 +08:00
9b824457c1 *: improve column size calculation of statistics (#11091) 2019-07-15 13:05:54 +08:00
53f8a2c366 executor, metrics: add metrics for fast analyze. (#11079) 2019-07-11 14:36:28 +08:00
9eb2379565 executor: fix invalid key error of fast analyze (#11072) 2019-07-04 19:51:34 +08:00
ce0312bd43 executor: handle unsigned primary key for fast analyze (#11074) 2019-07-04 16:08:39 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
b26cb0d93c stats: fix the index cm sketch for fast analyze (#10839) 2019-06-22 12:55:14 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
8c81e434db stats: correct fast analyze stats caclulation (#10766) 2019-06-20 14:01:55 +08:00
90096b3da5 executor: fix wrong row count in fast analyze (#10859) 2019-06-19 19:45:58 +08:00
2b611274e3 domain: load stats when stats lease is 0 (#10771) 2019-06-13 15:28:56 +08:00
89bfed305c executor, stats: fix fast analyze bugs (#10680) 2019-06-04 12:32:41 +08:00
5215a11385 executor: fix analyze worker panic (#10603) 2019-05-27 15:21:07 +08:00
2fedfd0ac4 executor: only retry needed regions when get region row count (#10429) 2019-05-21 13:54:29 +08:00
b0549b7875 stats: incremental analyze for index with feedback updates (#10355) 2019-05-08 13:50:46 +08:00
6a578a8b57 statistics: Support store CMSketch with Top N (#10255) 2019-04-29 12:15:59 +08:00
4b4fe8b549 stats: incremental analyze for index without feedback updates (#10102) 2019-04-28 15:34:51 +08:00
5fa16a8030 executor: support building stats for fast analyze. (#10258) 2019-04-28 13:49:54 +08:00
862df46fe9 executor: support fast sample for fast analyze (#10214) 2019-04-24 17:04:55 +08:00
a28d8779c1 *: support show analyze status (#10172) 2019-04-24 14:32:19 +08:00
33015e10a9 executor: fix the wrong order by pk desc result and some corner cases for unsigned pk (#10179) 2019-04-19 12:58:25 +08:00
5b469e08b3 planner, executor: support fast analyze in planner and executor's builder. (#10040) 2019-04-10 20:13:18 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00