Commit Graph

276 Commits

Author SHA1 Message Date
4136b81c23 *: merge IntColumnRange with NewRange. (#5591) 2018-01-10 15:50:58 +08:00
db328586b6 stats: speed up row count estimation (#5579) 2018-01-09 15:37:49 +08:00
5db9ac2506 types,util/chunk: refactor Time for Chunk. (#5571) 2018-01-09 10:12:27 +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
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
01f132ed39 stats: fix bug when estimating row count for outdated histograms (#5552) 2018-01-04 14:31:25 +08:00
835b764db3 stats: fix bug when build histograms for null json (#5545) 2018-01-04 11:15:32 +08:00
7c23a84a2c server, statistics: add dump_stats api for debug (#5534) 2018-01-03 14:47:56 +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
90401445d2 *: collect and store query feedback (#5438) 2017-12-22 11:33:05 +08:00
55dfb67362 stats: fix trigger condition for auto analyze (#5446) 2017-12-20 13:37:05 +08:00
fed3ffac0b types,statistics: don't use time.Local timezone in time Sub (#5424) 2017-12-19 18:22:31 +08:00
801c317896 statistics: benchmark selectivity function (#5441) 2017-12-18 20:54:22 -06:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
713bc797bb *: clear delta info when roll back transaction (#5390) 2017-12-13 15:35:07 +08:00
a2fb741191 *: Chunk add context parameter (#5348) 2017-12-09 11:23:40 +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
2cbeb5434d stats: speed up loading full stats info (#5266) 2017-11-30 11:51:44 +08: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
f0f94b1084 stats: speed up loading stats info when server starts (#5215) 2017-11-28 13:53:03 +08:00
ee0d3f37a2 types, ranger: move Range to package ranger. (#5231) 2017-11-27 18:17:29 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
e5f8ae074a statistics: avoid update delta when modified count is 0. (#5162) 2017-11-21 10:22:32 +08:00
a32b8dbcf6 *: use Chunk for TableReader. (#5142) 2017-11-21 10:08:50 +08:00
03023ca443 stats: fix estimation in between row count (#5135) 2017-11-17 16:48:34 +08:00
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
20dc896515 stats: use constant rand seed to make cm sktech test stable (#5076) 2017-11-13 11:41:01 +08:00
ec9d1f0cc6 *: simplify RecordSet.Fields. (#5068) 2017-11-12 12:07:18 +08:00
15212587e1 *: remove resolver.go (#4988) 2017-11-10 14:42:10 +08:00
30a080db5c *: build and use count-min sketch (#5042) 2017-11-08 22:34:01 +08:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
0acd9b6bea vendor: add proto for count min sketch (#5024) 2017-11-07 10:17:45 +08:00
8d0121c171 stats: fix count min sketch test (#5025) 2017-11-06 02:23:40 -06:00
363957bc19 stats: implement Count-Min Sketch (#4970) 2017-11-06 11:20:46 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
030b3628d5 *: Remove the check of initialized auto ID (#4971) 2017-11-02 12:24:19 +08:00
35fe2cae42 ddl, statistics: resolve the package dependency. (#4960) 2017-10-31 17:13:30 +08:00
55403c8469 stats: fix estimation in index point query (#4956) 2017-10-31 00:47:00 +08:00
ae84a0a19f stats: load column histograms by need (#4847) 2017-10-24 16:32:09 +08:00
e035f66dcd statistics: change the dnv of default null column to 0 (#4825) 2017-10-19 15:46:21 +08:00
6e63f3890a stats: add metrics for auto analyze (#4793) 2017-10-17 19:10:35 +08:00
e452dc51aa *: add schema state check (#4801) 2017-10-17 15:52:20 +08:00