Commit Graph

41 Commits

Author SHA1 Message Date
46ead360cc statistics: add PhysicalID to Column (#9394) 2019-02-22 17:30:31 +08:00
9bdba3a5d1 plan: handle DNF expressions in Selectivity (#9282) 2019-02-13 10:53:12 +08:00
82d2726300 planner, statistics: build new histogram using range information (#7921) 2019-01-14 20:33:36 +08:00
b74d0283a2 statistics: fix pseudo estimation for correlated column (#8734) 2018-12-25 22:40:38 +08:00
f7d8ca624a plan: use Column.UniqueID in conditionChecker of ranger (#8236) 2018-11-12 12:45:25 +08:00
e195df2e5d stats: fix selectivity estimation for primary key (#8134) 2018-11-01 20:38:08 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
87c54b2610 plan, statistics: maintain HistColl in DataSource's StatsInfo (#7385) 2018-08-31 01:14:43 +08:00
44e6c3c2e1 plan, stats: fix inconsistent row count estimation (#7233) 2018-08-06 17:39:33 +08:00
25f1e808f5 Use the revive linter. (#7197) 2018-07-31 13:19:09 +08:00
34d8fd8d8d plan, statistics: extract histColl struct (#6860) 2018-07-13 14:42:07 +08:00
c5524cb238 plan, executor: use CorrelatedColumn to calculate range. (#6779) 2018-06-28 16:23:05 +08:00
326ad271d6 plan: enhance the row count estimation when correlated column exists (#6911) 2018-06-27 13:33:15 +08:00
c348afebf1 stats: refine row count estimation (#6746) 2018-06-04 20:45:30 +08:00
7ea70d5433 statistics: uniform the calculation of pseudo stats. (#6483) 2018-05-09 11:31:06 +08:00
12dbd32854 *: rename NewRange to Range. (#6368) 2018-04-25 13:13:04 +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
4f991afb10 *: session context passed to newBaseBuiltinFuncWithTp should not be nil (#6178) 2018-03-29 16:12:36 +08:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
51c47a4ddc plan: The stats of some table is outdated, we use pseudo to estimate. (#5802) 2018-02-08 11:22:21 +08:00
ac4229aed0 plan, ranger: index range calculation enhancement. (#5611) 2018-01-31 15:35:59 +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
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
b901867b83 util/ranger: change BuildRange to build column/index/table range (#5509) 2017-12-27 06:16:19 -06:00
fa62e9fd01 *: merge ranger.IndexRange and ranger.ColumnRange. (#5485) 2017-12-26 16:08:36 +08:00
76f9e3e03b statistics,expression: reduce allocation for DetachCondsForSelectivity, add a Filter function (#5482) 2017-12-26 15:01:28 +08:00
77c4a98afb plan, stats: remove unnecessary clone (#5306) 2017-12-05 18:27:44 +08:00
640c4913e0 stats/selectivity: remove useless clone (#5283) 2017-12-01 21:22:55 +08:00
ee0d3f37a2 types, ranger: move Range to package ranger. (#5231) 2017-11-27 18:17:29 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ae84a0a19f stats: load column histograms by need (#4847) 2017-10-24 16:32:09 +08:00
95a6e1e720 ranger: split detach process from BuildRange. (#4741) 2017-10-12 11:22:18 -05:00
ca048c0582 statistics: Correct comments mistakes. (#4711)
* statistics: Correct comments mistakes.
2017-10-05 20:40:01 +06:00
97afa26e1f stats: fix a panic bug. (#4257) 2017-08-21 13:01:19 +08:00
2c4a46e2f0 statistics: return 1 when statistics is not ready and row count of table is 0 (#3952) 2017-07-31 14:28:04 +08:00
ec796ba999 plan, statistics: begin to use statsProfile to estimate count and cardinality. (#3728) 2017-07-13 16:57:27 +08:00
8072082323 statistics: introduce selectivity calculation (#3161) 2017-07-04 13:00:19 +08:00