Commit Graph

274 Commits

Author SHA1 Message Date
c0ca027f51 stats: fix data race when updating correlation (#9594) 2019-03-09 14:47:00 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +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
9afbda98d0 stats: restrict the adjust factor for index feedback (#9445) 2019-02-26 11:03:47 +08:00
9a8a0d88a9 stats: reduce stats collecor's lock contention (#9233) 2019-02-25 19:47:25 +08:00
46ead360cc statistics: add PhysicalID to Column (#9394) 2019-02-22 17:30:31 +08:00
bc0e70dc5c planner/core: implement skyline pruning (#9337) 2019-02-19 11:19:30 +08:00
9bdba3a5d1 plan: handle DNF expressions in Selectivity (#9282) 2019-02-13 10:53:12 +08:00
8431d1112e stats: add metircs for high error rate feedback (#9209) 2019-02-12 17:22:20 +08:00
35fce9397a stats: log auto analyze fail reason (#9178) 2019-01-25 19:44:48 +08:00
3984ad65db statistics: log the reason when triggering auto analyze (#9176) 2019-01-25 18:57:59 +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
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
f209843184 stats: fix histogram bound overflow error (#8984) 2019-01-09 10:57:55 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
b74d0283a2 statistics: fix pseudo estimation for correlated column (#8734) 2018-12-25 22:40:38 +08:00
3040788655 *: make errcheck work again (#8795) 2018-12-25 17:16:52 +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
98c72c6a8e stats: optimize unit test execution time (#8597) 2018-12-06 17:30:20 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
322795439d *: record cop scan rows in explain analyze (#8423) 2018-11-28 15:43:59 +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
f7d8ca624a plan: use Column.UniqueID in conditionChecker of ranger (#8236) 2018-11-12 12:45:25 +08:00
379ee5b191 stats: fix converting duration to timestamp (#8174) 2018-11-05 18:28:55 +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
5831de291d *: enable range typed table partition (#8011) 2018-10-26 20:04: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
19e78d025e stats: update error rate for partition table (#8022) 2018-10-24 15:57:03 +08:00
9c913745d9 stats: garbage collect stats for partition table (#7962) 2018-10-24 14:59:34 +08:00
06f4740dfd stats: use local feedback for partition table (#7963) 2018-10-23 15:49:31 +08:00
edaec7bdaf *: move Statement and RecordSet from ast to sqlexec package (#7970) 2018-10-21 13:21:26 +08:00
25118db843 *: move ast.NewValueExpr to standalone parser_driver package (#7952)
Make the ast package get rid of the dependency of types.Datum
2018-10-19 19:37:55 +08:00
ec9672cea6 stats: update delta info for partition table (#7947) 2018-10-18 18:42:41 +08:00
6220692e3b stats: limit the length of sample values (#7931) 2018-10-18 15:30:43 +08:00
a7f78c7704 stats: fix histogram boundaries overflow error (#7883) 2018-10-17 14:45:50 +08:00
dcf3816c09 stats: fix panic caused by empty histogram (#7912) 2018-10-16 18:58:37 +08:00
95edaf02e0 stats: handle ddl event for partition table (#7903) 2018-10-16 16:43:26 +08:00
7229b32a25 *: support auto analyze partition table (#7789) 2018-10-12 20:57:59 +08:00
db151bb66f domain: fix memory leak for stats (#7864) 2018-10-11 10:58:22 +08:00
d5d8ba09a3 stats: fix combined index low-bound check (#7814) 2018-10-08 14:30:43 +08:00
5baedaa21c expression, types: fix some corner case when parsing string to datetime (#7701) 2018-10-08 10:35:52 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +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