Commit Graph

91 Commits

Author SHA1 Message Date
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
d51a3e067e planner: use HistColl containing all columns for row width estimation (#11689) 2019-08-09 17:00:33 +08:00
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +08:00
03bb8d7818 stats: convert small range to points in selectivity (#11524) 2019-08-05 10:45:51 +08:00
bd419c8fdb stats: fix panic when dump pseudo columns (#11430) 2019-07-26 14:43:20 +08:00
89bfed305c executor, stats: fix fast analyze bugs (#10680) 2019-06-04 12:32:41 +08:00
69b02a3736 *: make config items Performance.*, OOMAction and MemQuotaQuery support hot-reloading (#10295) 2019-04-29 16:38:46 +08:00
e5f734e54c *: move the Handle of stats to single package. (#10149) 2019-04-17 13:42:34 +08:00
7666f688b3 *: add stats version in slow_query and slow log. (#10082) 2019-04-15 18:04:48 +08:00
2e14068ee1 *: improve NULL count estimation for single column index (#9474) 2019-03-30 19:22:30 +08:00
451f54e25e statistics: unify log format in package statistics (#9534) 2019-03-18 16:59:56 +08:00
c5c30912db statistics: set correlation when loading needed column histogram (#9701) 2019-03-14 16:28:53 +08:00
c0ca027f51 stats: fix data race when updating correlation (#9594) 2019-03-09 14:47:00 +08:00
69f2749154 executor: only show valid columns in stats_histogram (#9487) 2019-02-28 13:06:38 +08:00
45f9d6a00f statistics: compute and store column order correlation with handle (#9315) 2019-02-27 11:32:00 +08:00
46ead360cc statistics: add PhysicalID to Column (#9394) 2019-02-22 17:30:31 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
82d2726300 planner, statistics: build new histogram using range information (#7921) 2019-01-14 20:33:36 +08:00
8be09da457 stats: fix panic when dumping stats (#8448) 2018-11-26 21:08:02 +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
d65ce8655c stats: fix estimation for out of range point queries (#8015) 2018-10-24 16:20:22 +08:00
83a923e796 stats: support dump stats for partition table (#7753) 2018-09-22 09:52:47 +08:00
a947590b14 stats: update the way of using index feedback (#7488) 2018-09-13 19:02:32 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
621ca431ad stats, plan: return row count 0 for empty range on handle (#7583) 2018-09-03 11:05:28 +08:00
87c54b2610 plan, statistics: maintain HistColl in DataSource's StatsInfo (#7385) 2018-08-31 01:14:43 +08:00
29addca221 stats: log detailed stats info for query feedback (#7293) 2018-08-15 22:01:44 +08:00
00839ceeec stats: support loading partition stats (#7305) 2018-08-09 20:00:03 +08:00
a629630745 stats: refine the row count estimation for outdated stats (#7175) 2018-07-29 12:49:26 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
3173604871 stats: do not change histogram version when updating coloumn size (#7145) 2018-07-25 16:32:04 +08:00
3b5e8a2264 stats: use feedback in time (#6859) 2018-07-23 19:27:14 +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
3f574d97c9 stats: refactor stats update mechanism (#6901) 2018-07-06 11:22:11 +08:00
c5524cb238 plan, executor: use CorrelatedColumn to calculate range. (#6779) 2018-06-28 16:23:05 +08:00
0ab0b50f25 stats: refine the pseudo condition for stats (#6565) 2018-06-27 17:05:37 +08:00
48719d2019 stats: refine index row count estimation (#6869) 2018-06-22 15:48:36 +08:00
c348afebf1 stats: refine row count estimation (#6746) 2018-06-04 20:45:30 +08:00
bcd3750f4b stats: refine stats log level (#6627) 2018-05-23 20:33:30 +08:00
8729424629 stats: fix dump stats (#6285) 2018-04-26 17:40:10 +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
9fbf8a6637 stats: dynamically update the average column size (#6170) 2018-04-13 16:31:43 +08:00
056161d6ae stats: fix row count estimation for null (#6203) 2018-04-04 10:59:40 +08:00
905eda7ff5 stats: fix row estimation for pseudo unique key (#6199) 2018-04-02 20:27:58 +08:00
df6f955fe8 stats: update the histogram using feedback (#6086) 2018-03-29 13:29:04 +08:00
501de19821 stats: add average column size for the histogram (#5974) 2018-03-23 13:44:24 +08:00