Commit Graph

86 Commits

Author SHA1 Message Date
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
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
888bc2a602 *: uniform the way to iterate rows within a Chunk (#5674) 2018-01-22 11:34:04 +08:00
384a1080e7 stats: fix estimation in between row count (#5682) 2018-01-19 11:35:30 +08:00
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
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
01f132ed39 stats: fix bug when estimating row count for outdated histograms (#5552) 2018-01-04 14:31:25 +08:00
fa62e9fd01 *: merge ranger.IndexRange and ranger.ColumnRange. (#5485) 2017-12-26 16:08:36 +08:00
62b4b0f866 ranger, stats: remove Align method of IndexRange. (#5240) 2017-11-28 20:02:24 +08:00
ee0d3f37a2 types, ranger: move Range to package ranger. (#5231) 2017-11-27 18:17:29 +08: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