Commit Graph

100 Commits

Author SHA1 Message Date
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
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
e0dbe7ae8a planner: push TopN down when N is less than a specific variable (#26550) 2021-07-27 16:38:16 +08:00
8945d64362 planner: fix the panic that the index's range length may exceed its original column count (#25267) 2021-06-18 12:04:38 +08:00
11716e7f4a *: use full sampling as default analyze (#25132) 2021-06-06 00:34:27 +08:00
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +08:00
39bd181213 *: Upgrade to go 1.16 && remove deprecated io/ioutil (#24527) 2021-05-25 12:07:34 +08:00
f1a48216b2 statistics: fix some potential panic in statistics (#23988) 2021-04-15 21:15:53 +08:00
d339eb15eb planner: generate BatchPointGet for hash table partitions (#23733) 2021-04-13 15:09:51 +08:00
41f5441fd6 planner: fix err check (#22997) 2021-04-12 19:23:50 +08:00
32f6e333af planner: split test data from test cases in cbo_test.go (#22559) 2021-04-03 00:33:24 +08:00
3ed4a23b95 executor: refineArgs() bug fix when compare int with very small decimal (#23694) 2021-03-30 20:53:24 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
5b12f9224e *: check tidb_enable_extended_stats in analyze and row count estimation (#23029) 2021-03-03 02:54:53 +08:00
e1004a2ccb *: modify the switch to control global stats (#22866) 2021-03-01 14:18:30 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
44641c3282 planner: change the content of AnalyzeTableID to build global-stats (#22554) 2021-02-02 15:39:44 +08:00
9ef7246d29 executor: fix data race in extractTxnScope (#21929) 2020-12-23 15:34:30 +08:00
5acff8de7a *: Revert "#19008" and "#18788" (#21599) 2020-12-14 15:06:35 +08:00
32d19b78e1 *: refine runtime stats display and tiny bug fix for metrics (#21022)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-26 16:35:25 +08:00
cd16de894b *: introduce LRUCache with limited memory for statistics (#18788) 2020-10-15 17:36:21 +08:00
ced01b2333 planner: estimate index row count using extended correlation stats (#20160) 2020-10-12 15:52:52 +08:00
151ef8492b statistics: prioritize low selectivity indexes in the greedy search procedure of Selectivity() (#20038) 2020-09-22 19:17:42 +08:00
db8df83eb0 executor: add coprocessor cache hit ratio in explain analyze (#19948) 2020-09-14 14:40:06 +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
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +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
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
a8da23c254 test: fix data race caused by update global config (#17964)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-12 13:05:27 +08:00
94a722e2df statistics: improve estimation for index equal condition (#17366) 2020-06-03 08:32:17 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
c0814f0b0e return err when INSERT/UPDATE/ANALYZE/DELETE a sequence (#16936) 2020-04-30 16:52:38 +08:00
a69e7da69b util/hint: resolve semantically equivalent bindings into a single one (#15895) 2020-04-03 17:27:57 +08:00
21ee980e11 *: Refine Explain's format. (#15507) 2020-03-23 17:57:49 +08:00
183a9d585a *: update explain info of outer hash joins (#15247) 2020-03-10 20:38:02 +08:00
77dcdc546d *: Clear the name of some field in explain result. (#14958) 2020-03-02 17:43:22 +08:00
236352e98f *: show build and probe side for join and index lookup related operators in explain result (#14838) 2020-02-26 17:12:09 +08:00
3399f4be31 planner: distinguish FullScan and the RangeScan in explain/desc info (#14696) 2020-02-24 15:23:06 +08:00
43baa74fa2 planner/core: support get hints of query (#13851) 2019-12-04 14:19:07 +08:00
8fab2548d0 executor: show operators' disk consumption in results of EXPLAIN ANALYZE (#13764) 2019-12-02 17:04:29 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +08:00
96069cd749 planner: reuse GroupBy Columns when build finalModeAgg (#13653) 2019-11-21 13:53:37 +08:00
889ad618cf planner: projection don't new unnecessary column (#13406) 2019-11-20 13:58:38 +08:00
da44428547 planner: make hint read_from_storage take effect for tikv (#13578) 2019-11-20 10:44:15 +08:00
96757aabb6 planner: fix bug cost model for tiflash do not work (#13111) 2019-11-04 15:46:40 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
7ffa4500e6 planner: support a hint to read from tiflash in planner (#12479) 2019-10-11 16:36:35 +08:00
1fe9773726 planner: introduce an individual physical plan for indexNestedLoopHashJoin (#12139) 2019-09-24 21:18:45 +08:00