Commit Graph

76 Commits

Author SHA1 Message Date
b4eee287af *: extract topn out of histogram correctly (#21007)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
2020-12-10 17:05:39 +08:00
b3f0f3cb74 Revert "statistics: introduce an interface for StatsCache (#20091)" (#21583) 2020-12-09 14:08:47 +08:00
fc37586491 *: refactor function ExecRestrictedSQLWithContext to fix a DATA RACE (#21461) 2020-12-04 14:28:38 +08:00
554bae75f0 statistics: introduce an interface for StatsCache (#20091) 2020-12-02 17:18:42 +08:00
583cbd265b statistics: store the topn by slice instead of map (#20818) 2020-11-06 15:39:33 +08:00
c2e3b0a6ad statistics: decouple TopN from CMSKetch (#20572) 2020-10-28 15:16:42 +08:00
99d1163cbc *: use ID instead of NAME in mysql.schema_index_usage (#20589) 2020-10-23 14:42:29 +08:00
bdb6c49600 *: collect index usage information from point get and dump them to KV (#20126) 2020-10-16 16:17:34 +08:00
cd16de894b *: introduce LRUCache with limited memory for statistics (#18788) 2020-10-15 17:36:21 +08:00
dcefa58035 *: use global stats & make ddl/feedback/show/export works(part III) (#20271) 2020-10-14 16:11:33 +08:00
35cba465e2 statistics: fix an unsafe lock operation and adjust some logging levels (#20381) 2020-10-13 15:58:44 +08:00
6342fa6a50 ddl: fix corrupted default value for bit type column (#18036) 2020-10-04 12:59:40 +08:00
170e2fec92 *: collect multiple partitions and store in tidb (part II) (#19899) 2020-09-29 21:25:56 +08:00
0528a1f12f *: handle the to-do item of rebuilding ReorgInfo key when executing modify/change column (#19866) 2020-09-27 08:34:36 +08:00
c303b05760 statistics: support dump/load/gc extended statistics (#19260) 2020-09-22 19:13:38 +08:00
411eba618c statistics: update stats per table in the pipeline (#19370) 2020-09-15 19:53:08 +08:00
2a3a5ab076 *: disable new partition prune in master distribution (#19911) 2020-09-14 16:26:54 +08:00
716f762d5d statistics: reduce HandleAutoAnalyze memory usage (#19837) 2020-09-12 10:54:27 +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
8fe2a0b5d8 statistics: drop stats should delete topn (#18160)
* statistics: drop stats should delete topn

* add rest

* fix test

* fix test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 14:15:51 +08:00
a2e2ce6339 *: use int instead of fmt.Stringer as executor id (#19207) 2020-08-19 13:39:31 +08:00
43a9d77965 *: compute and save correlation extended statistics in ANALYZE (#19134) 2020-08-18 10:56:40 +08:00
c5c7bf87bb *: support CREATE / DROP / ADMIN RELOAD STATISTICS (#18880) 2020-08-11 17:27:48 +08:00
76c86a86e5 statistics: fix memtracker test (#19008)
* fix memtracker test

* fix timeout

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-11 13:36:17 +08:00
3df573d2fc planner,executor: use new table partition implementation and fix CI (#18981) 2020-08-06 17:50:40 +08:00
aeee1524e4 planner: fix the inappropriate heuristic rule to estimate the EQ selectivity when out of range (#18543) 2020-08-05 14:11:06 +08:00
beaafce2a5 statistics:enable memtracker for table statisitic (#18685) 2020-07-23 16:13:34 +08:00
a99fdc098c statistics: ease the impact of stats feedback on cluster (#15503) 2020-07-08 19:53:04 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
b05327509c session/statistics: discard feedbacks from delete / update (#17452) 2020-06-08 14:34:58 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
2846f5c5ba statistics: fix panic when getStatsReader fail (#15651) 2020-03-26 13:16:17 +08:00
55b3e1110c *: reduce the allocation caused by Datum.Copy (#15219) 2020-03-09 17:38:46 +08:00
a7bdb82402 *: Reduce memory operations by simply passing size hint to make (#14922) 2020-02-25 15:44:36 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
79eaa967bb ddl, stats: handle add/trunctate partition events (#14500) 2020-01-22 17:44:22 +08:00
253a81e64f stats: fix panic when init stats for cm sketch (#14421) 2020-01-14 14:22:21 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +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
510c36d4cb planner: fix a bug for chunk cost model. (#14144) 2019-12-22 09:15:16 +08:00
02408dbd04 planner: support cost model for Chunk encode format. (#13461) 2019-12-18 15:47:16 +08:00
0fe96bc864 stats: remove the lower bound of auto analyze ratio (#13995) 2019-12-10 16:52:25 +08:00
7de620055d expression: support expression reverse evaluation framework (#13738) 2019-12-05 11:50:09 +08:00
5a589c9994 planner: consider disk cost in hashJoin (#13246) 2019-12-03 13:43:19 +08:00
230b0379cc statistics: refactor the code (#13788) 2019-12-02 10:53:22 +08:00
518692c14c bindinfo: support evolve plan (#13465) 2019-11-22 17:09:37 +08:00
876da07be5 stats: fix data race when updating stats cache (#13647) 2019-11-22 15:28:37 +08:00
5069939d74 stats: specially handle unqiue key when estimate (#13354) 2019-11-11 17:52:30 +08:00
f9be8ebf85 *: make log_level working for gotest (#13258) 2019-11-08 14:44:39 +08:00