Commit Graph

99 Commits

Author SHA1 Message Date
03bb8d7818 stats: convert small range to points in selectivity (#11524) 2019-08-05 10:45:51 +08:00
0668cae665 executor, stats: extract topn from cm sketch (#11409) 2019-07-29 19:05:19 +08:00
9b824457c1 *: improve column size calculation of statistics (#11091) 2019-07-15 13:05:54 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
3f4f3d0bd9 stats: improve code coverage (#10606) 2019-06-12 13:34:41 +08:00
183648f44f statistics: support dump/load correlation of histogram (#10573) 2019-05-23 11:24:44 +08:00
7d7c146786 *: fix bug when unsigned histogram meets signed ranges in feedback (#10415) 2019-05-14 15:49:02 +08:00
b0549b7875 stats: incremental analyze for index with feedback updates (#10355) 2019-05-08 13:50:46 +08:00
4b4fe8b549 stats: incremental analyze for index without feedback updates (#10102) 2019-04-28 15:34:51 +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
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
aef66b2435 statistics, store: tidy local variable (#9679) 2019-03-13 10:34:19 +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
82d2726300 planner, statistics: build new histogram using range information (#7921) 2019-01-14 20:33:36 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
8be09da457 stats: fix panic when dumping stats (#8448) 2018-11-26 21:08:02 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +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
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
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
29addca221 stats: log detailed stats info for query feedback (#7293) 2018-08-15 22:01:44 +08:00
a629630745 stats: refine the row count estimation for outdated stats (#7175) 2018-07-29 12:49:26 +08:00
3b5e8a2264 stats: use feedback in time (#6859) 2018-07-23 19:27:14 +08:00
8cb45e1ff1 stats: rollback when transaction failed (#7026) 2018-07-16 15:05:16 +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
96a5109ebb types: handle NULL datum if we need convert it to string. (#6761)
* types: handle `NULL` when we need to
2018-06-06 20:15:48 +08:00
7853035f8a stats: fix estimation for between row count (#6596) 2018-05-22 11:07:28 +08:00
5c2d21eab4 *: remove function "NewChunk" (#6524) 2018-05-14 13:43:19 +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
9fbf8a6637 stats: dynamically update the average column size (#6170) 2018-04-13 16:31:43 +08:00
19573c6754 *: update stats using query feedback (#6197) 2018-04-10 19:12:38 +08:00
056161d6ae stats: fix row count estimation for null (#6203) 2018-04-04 10:59:40 +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
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
a0eb1bbd06 stats: remove invalid range when split (#6034) 2018-03-13 13:26:46 +08:00
6a826fd0aa *: collect query feedback (#5909) 2018-03-12 15:37:09 +08:00