Commit Graph

67 Commits

Author SHA1 Message Date
daf525a17e *: replace compareDatum by compare, range part (#30710) 2021-12-16 19:48:36 +08:00
ac25e9f04c statistics: add mutex for Handle.globalMap and Handle.feedback (#30550) 2021-12-14 18:22:35 +08:00
4051cf435c statistics: replace compareDatum by compare (#30052) 2021-11-23 19:21:50 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
219c02e962 statistics: avoid mutate global variable (#28678) 2021-10-09 17:47:24 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
73bb7dd2c6 *: Annotations and fixes related to gosec (#26907) 2021-08-09 22:27:15 +08:00
18cbfaac15 *: enable gosimple linter (#24617) 2021-05-14 09:15:38 +08:00
fd7a331f03 statistics: feedback not panic when no ndv collected (#23808) 2021-04-02 11:45:24 +08:00
df9e730c16 stats, planner, sessionctx: handle compatibility between feedback and ver2 stats (#22846)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Yiding Cui <winoros@gmail.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-23 13:46:49 +08:00
3dd842f50a statistics: add bucket ndv for index histogram (#20580)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-13 18:24:21 +08:00
b4eee287af *: extract topn out of histogram correctly (#21007)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
2020-12-10 17:05:39 +08:00
583cbd265b statistics: store the topn by slice instead of map (#20818) 2020-11-06 15:39:33 +08:00
c2e3b0a6ad statistics: decouple TopN from CMSKetch (#20572) 2020-10-28 15:16:42 +08:00
3903c6b8b5 statistics: fix the display of bounds for indexes with date/time columns. (#19961) 2020-09-17 19:01:26 +08:00
a99fdc098c statistics: ease the impact of stats feedback on cluster (#15503) 2020-07-08 19:53:04 +08:00
b05327509c session/statistics: discard feedbacks from delete / update (#17452) 2020-06-08 14:34:58 +08:00
55b3e1110c *: reduce the allocation caused by Datum.Copy (#15219) 2020-03-09 17:38:46 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
4dfbb14c51 *: tidy code && prealloc some slice for performance (#13468) 2020-01-02 17:26:10 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
7de620055d expression: support expression reverse evaluation framework (#13738) 2019-12-05 11:50:09 +08:00
b0e8e0764d *: fix staticcheck errors in folder statistics (#13776) 2019-11-28 12:31:21 +08:00
440bb748a6 stats: do not split excluded lower value ranges (#12009) 2019-09-11 17:02:45 +08:00
3fdfe2e370 stats: support display invalid key in stats buckets (#12064) 2019-09-09 17:59:11 +08:00
af15f725b5 stats: handle feedback updates for topn items (#11434) 2019-07-29 17:21:08 +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
8046775b6d stats: adjust datum type when using the index query feedback (#10614) 2019-06-10 16:25:23 +08:00
380eb2c540 stats: merge non-overlapped feedback when update bucket count (#10476) 2019-05-22 16:04:42 +08:00
69b02a3736 *: make config items Performance.*, OOMAction and MemQuotaQuery support hot-reloading (#10295) 2019-04-29 16:38:46 +08:00
6a578a8b57 statistics: Support store CMSketch with Top N (#10255) 2019-04-29 12:15:59 +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
52b7bfda0e types: use switch table to save memory (#9650) 2019-03-12 22:04:22 +08:00
9afbda98d0 stats: restrict the adjust factor for index feedback (#9445) 2019-02-26 11:03:47 +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
f209843184 stats: fix histogram bound overflow error (#8984) 2019-01-09 10:57:55 +08:00
3040788655 *: make errcheck work again (#8795) 2018-12-25 17:16:52 +08:00
322795439d *: record cop scan rows in explain analyze (#8423) 2018-11-28 15:43:59 +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
06f4740dfd stats: use local feedback for partition table (#7963) 2018-10-23 15:49:31 +08:00
a7f78c7704 stats: fix histogram boundaries overflow error (#7883) 2018-10-17 14:45:50 +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
a34d69906f stats: fix panic when updating by feedback (#7640) 2018-09-09 11:06:08 +08:00