Commit Graph

56 Commits

Author SHA1 Message Date
cc24101d97 statistics: fix repetitive selectivity accounting and stabilify the result (#15536) 2020-04-03 15:50:09 +08:00
2c6f4468a0 statistics: fix row count estimation of unique composite index (#14076) 2019-12-16 19:05:13 +08:00
7b09a11f17 planner,stats: don't re-calculate the index's ranges (#12856) 2019-12-04 17:19:48 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +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
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
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +08:00
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +08:00
abbca5375e *: add trace support for subquery (#11182)
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
3f4f3d0bd9 stats: improve code coverage (#10606) 2019-06-12 13:34:41 +08:00
e5f734e54c *: move the Handle of stats to single package. (#10149) 2019-04-17 13:42:34 +08:00
2e14068ee1 *: improve NULL count estimation for single column index (#9474) 2019-03-30 19:22:30 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
bc0e70dc5c planner/core: implement skyline pruning (#9337) 2019-02-19 11:19:30 +08:00
82d2726300 planner, statistics: build new histogram using range information (#7921) 2019-01-14 20:33:36 +08:00
98c72c6a8e stats: optimize unit test execution time (#8597) 2018-12-06 17:30:20 +08:00
e195df2e5d stats: fix selectivity estimation for primary key (#8134) 2018-11-01 20:38:08 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
d65ce8655c stats: fix estimation for out of range point queries (#8015) 2018-10-24 16:20:22 +08:00
dcf3816c09 stats: fix panic caused by empty histogram (#7912) 2018-10-16 18:58:37 +08:00
d5d8ba09a3 stats: fix combined index low-bound check (#7814) 2018-10-08 14:30:43 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
87c54b2610 plan, statistics: maintain HistColl in DataSource's StatsInfo (#7385) 2018-08-31 01:14:43 +08:00
00839ceeec stats: support loading partition stats (#7305) 2018-08-09 20:00:03 +08:00
343cb849b8 *: fast path point select (#6937) 2018-07-30 18:13:47 +08:00
a629630745 stats: refine the row count estimation for outdated stats (#7175) 2018-07-29 12:49:26 +08:00
1bf3f3d407 ranger: refine explain format, again (#7041) 2018-07-17 16:47:44 +08:00
34d8fd8d8d plan, statistics: extract histColl struct (#6860) 2018-07-13 14:42:07 +08:00
372a6fc921 plan: refine explain result format (#7011) 2018-07-09 13:55:36 +08:00
6a931e55dc plan: remove other accessPaths if one is unique key and full matched. (#6925) 2018-06-29 14:32:26 +08:00
a7819c3385 plan: draw relation bewteen operators with indent (#6894) 2018-06-28 13:28:43 +08:00
48719d2019 stats: refine index row count estimation (#6869) 2018-06-22 15:48:36 +08:00
7853035f8a stats: fix estimation for between row count (#6596) 2018-05-22 11:07:28 +08:00
58326c844e stats: fix pseudo selectivity for primary key (#6302) 2018-04-18 10:10:03 +08:00
905eda7ff5 stats: fix row estimation for pseudo unique key (#6199) 2018-04-02 20:27:58 +08:00
501de19821 stats: add average column size for the histogram (#5974) 2018-03-23 13:44:24 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
3cff21e5b1 plan, executor: avoid children type assertion. (#5616) 2018-01-12 15:39:50 +08:00
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
c45111d9f6 stats: use more compact structure for histograms (#5539)
* stats: use more compact structure for histograms

* address comments

* address comments

* refine code

* address comment
2018-01-05 20:43:01 +08:00
01f132ed39 stats: fix bug when estimating row count for outdated histograms (#5552) 2018-01-04 14:31:25 +08:00
b901867b83 util/ranger: change BuildRange to build column/index/table range (#5509) 2017-12-27 06:16:19 -06:00
801c317896 statistics: benchmark selectivity function (#5441) 2017-12-18 20:54:22 -06:00
62b4b0f866 ranger, stats: remove Align method of IndexRange. (#5240) 2017-11-28 20:02:24 +08:00
6d5bb7c23e plan, executor: split selection to logical plan and physical plan. (#5235)
* plan, executor: split selection to logical plan and physical plan.
2017-11-27 22:01:45 -08:00
03023ca443 stats: fix estimation in between row count (#5135) 2017-11-17 16:48:34 +08:00