Commit Graph

108 Commits

Author SHA1 Message Date
26653ec3e1 planner: enhance the extract table from update/insert/delete stmt in binding sql check (#27519) 2021-08-26 13:00:04 +08:00
79aab25fc2 expression: forbidden bind sql when subquery or union exists (#27347) 2021-08-21 12:12:02 +08:00
5c1081f669 *: support user defined filters for baseline capture (#26294) 2021-08-18 15:44:00 +08:00
4a3c290c0b planner: add test case for sql binding in the local temporary (#27206) 2021-08-17 17:42:00 +08:00
eb418f3b5a bindinfo: fix SPM doesn't work for CTE (#25583) 2021-08-16 20:47:59 +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
d7681ae154 planner/test: fix tests for SPM (#26951) 2021-08-06 15:55:13 +08:00
300f15959d planner: logically delete the bindinfo when create the new binding (#26015) 2021-08-06 11:17:13 +08:00
c08de09173 planner: show binding information in explain format = 'verbose' (#26930) 2021-08-05 19:31:13 +08:00
bfbe67db6d planner: ban baseline evolution feature (#26333) 2021-08-05 09:45:07 +08:00
a0d0b48fd5 planner, bindinfo: support show bindings order by update_time (#26139) 2021-08-05 02:27:20 +08:00
cb7cd9c4c0 planner: directly use sql bind to generate query plan (#26141) 2021-08-04 20:43:07 +08:00
3db4ab60d3 bindinfo: garbage collect deleted bind records (#26206) 2021-08-04 16:59:07 +08:00
ec8351ca9a bindinfo: add status vars for 'last_plan_binding_update_time' (#26340) 2021-08-03 16:47:07 +08:00
df908bf31f planner: add binding info for explain stmt (#26403) 2021-08-02 16:57:06 +08:00
e0dbe7ae8a planner: push TopN down when N is less than a specific variable (#26550) 2021-07-27 16:38:16 +08:00
c6680e999b *: update client-go and update mocktikv usages (#25911) 2021-07-09 10:57:32 +08:00
bd11917ca0 bindinfo,planner: report error when creating sql binding on temporary table (#25058) 2021-06-15 14:08:37 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
b1d134d7d9 txn: Add txn state's view (#22908) 2021-05-12 19:25:40 +08:00
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
276dd0e69e util: optimize the performance of restore with db (#22910) 2021-03-12 16:46:56 +08:00
1ca62a09ff planner: fixed a bug that prevented SPM from taking effect (#23197) 2021-03-09 17:56:55 +08:00
39b50f5b2d bindinfo: fix error check (#22985) 2021-03-03 18:54:55 +08:00
8a490e96b5 parser: quote identifier with backquote when getting SQL digest (#22893) 2021-02-26 14:54:54 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
e234403616 planner: fix panic in extractSelectAndNormalizeDigest (#22333) 2021-01-11 15:43:10 +08:00
0a4ec0da2b bindinfo: avoid duplicate bindings caused by concurrent baseline capture (#22182) 2021-01-08 14:18:27 +08:00
fe9d3161fa executor: store correct plan hint in statements_summary when log level is 'debug' (#22219) 2021-01-08 14:03:10 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
4135fa313f planner: generate correct query block name and offset for update / delete (#21823) 2020-12-23 17:03:59 +08:00
c843da98b7 bindinfo: enforce default_db to lower case for SQL bind operations (#21861) 2020-12-22 19:16:56 +08:00
7b76edcfe1 *: support baseline capture for prepared statements (#21271) 2020-12-22 16:21:59 +08:00
31673c8e92 bindinfo: sync concurrent ops on mysql.bind_info from multiple tidb instances (#21629) 2020-12-18 03:51:35 +08:00
3b8642663a bindinfo: physically delete previous binding when recreating a binding (#21349) 2020-12-03 15:12:04 +08:00
5723034c06 bindinfo: dbname check for bindings should be case insensitive (#21143) 2020-12-03 11:02:17 +08:00
67f83a4d3a util/hint: fix ineffective index hint for delete / update in SQL Bind (#21104) 2020-11-30 17:29:59 +08:00
32d19b78e1 *: refine runtime stats display and tiny bug fix for metrics (#21022)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-26 16:35:25 +08:00
2901bb47f5 go.mod, bindinfo: update parser to fix binding doesn't work for prepared stmt with LIMIT (#21214) 2020-11-24 16:05:48 +08:00
2c66371d8b planner, sessionctx : Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding (#18017) 2020-11-20 20:43:23 +08:00
f72cec77b6 *: support SQL bind for Update / Delete / Insert / Replace (#20686) 2020-11-17 15:19:04 +08:00
e102c12479 planner, config: Enable plan cache by default (#20416) 2020-10-29 23:00:26 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
713c2378f6 planner: let SQL BINDING support UNION ALL/INTERSECT/EXCEPT (#20010) 2020-09-27 13:58:37 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
7ca3d9cadc bindinfo, record how bindings are created in SQL bindings. (#17254) 2020-05-27 09:56:40 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
65b7f0f119 ddl: add alter index visibility DDL support (#16914) 2020-05-08 15:17:08 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00