Commit Graph

17 Commits

Author SHA1 Message Date
4d9b70f0a6 plan, executor: give special treat for index columns when analyze table (#2436)
* plan/statistics: statistics support add index info
2017-01-26 11:24:53 +08:00
304445514b plan: remove useless log (#2463) 2017-01-15 10:56:26 +08:00
07f756b818 plan/statistics: statistics support add index info (#2349) 2017-01-10 15:22:01 +08:00
47316499fd plan: add cache for statistics table (#2398) 2017-01-08 01:09:23 +08:00
f42eb05cbb adjust the parameter of cbo (#2412) 2017-01-07 16:24:15 +08:00
74a1c9935d *: add StatementContext argument to functions. (#2157)
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
de1714845d plan: adjust index cost calculation algorithm. (#1975) 2016-11-10 15:56:22 +08:00
693eada753 plan: fix cost calculate bug. (#1933)
* plan: fix cost calculate bug.
2016-11-03 12:34:34 +08:00
0956a65cbd *: update tipb for time zone offset (#1807) 2016-10-11 11:08:33 +08:00
f87a342579 change equal filter rate to 1/200 (#1708) 2016-09-09 09:48:28 +08:00
558ba06368 decode with value size (#1641)
Add size parameter for Decode to reduce slice growth
BenchmarkDecodeWithSize-8 300000 6153 ns/op
BenchmarkDecodeWithOutSize-8 200000 11934 ns/op
2016-08-26 10:44:03 +08:00
076e358324 plan: Fix a few bugs (#1555)
* plan: fix cost full range bug

* plan: fix like empty pattern

* plan: make more accurate cost

* plan: make more accurate cost in range[MinNotNull,MaxValue]

* executor: fix like convert to PB when pattern isn't a constant
2016-08-05 16:54:17 +08:00
d639c0aa54 support single index read. (#1538) 2016-08-02 16:13:50 +08:00
b23d798f75 plan/statistics: implement pseudo table and API to estimate row count. (#1434) 2016-07-13 15:42:22 +08:00
a9aad12ba8 *: move tablecodec package out of xapi. (#1335) 2016-06-22 13:32:26 +08:00
b8bf59592f executor: implement ANALYZE TABLE (#1327) 2016-06-20 11:13:16 +08:00
1e4eb0e91a plan/statistics: Add Statistics types. (#1322) 2016-06-16 19:02:23 +08:00