Commit Graph

85 Commits

Author SHA1 Message Date
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
e5a9e4690f bindinfo: add debugging to plan evolve (#20523) 2020-10-20 13:11:06 +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
03003538d1 *: fix a lot of typos (#18917) 2020-08-03 11:03:33 +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
b95d8578fa UCP: improve UT coverage of package planner, part 1 (#16093) 2020-05-06 20:20:09 +08:00
30f6f32708 tests: abstract Cluster interface for introducing new mock... (#16940) 2020-04-30 10:46:55 +08:00
e0ce5bd585 bindinfo: report error for completely invalid hint of bind_sql (#16059) 2020-04-14 15:46:30 +08:00
b54ac5b2ec refine bindinfo_test.TestGlobalAndSessionBindingBothExist (#15941) 2020-04-08 23:45:16 +08:00
a69e7da69b util/hint: resolve semantically equivalent bindings into a single one (#15895) 2020-04-03 17:27:57 +08:00
0fcece7bbc *: show correct result for system variable tidb_capture_plan_baselines (#16013) 2020-04-03 12:18:08 +08:00
746c88a461 bindinfo, planner: make evolve tasks consider runtime hints instead of ignoring them (#15668) 2020-03-31 20:30:23 +08:00
2619f02ddd *: move hint and block hint processor to util directory (#15897) 2020-03-31 16:37:45 +08:00
cc72a37d05 bindinfo: admin evolve baseline should not check the evolving time window (#15830) 2020-03-30 22:02:11 +08:00
71cf7e92f1 bindinfo: build ID of BindRecord from Hint instead of explain query (#15781) 2020-03-30 14:40:43 +08:00
22a585cfec bindinfo, session: mute internal logs during capture bindings (#15802) 2020-03-30 12:57:05 +08:00
7223e7f8c9 bindinfo, planner: fix TiFlash compatibility with binding and SQL plan management (#15719) 2020-03-27 15:44:15 +08:00
b60991e29c *: support ADMIN RELOAD BINDINGS to refresh binding cache (#15732) 2020-03-27 12:21:14 +08:00
5cf0c3e2d4 bindinfo: clear all bindings when create bind for one normalized SQL (#15669) 2020-03-26 14:07:08 +08:00
11bfea6f45 bindinfo: set correct default_db for captured bindings (#15367) 2020-03-24 17:35:46 +08:00
21ee980e11 *: Refine Explain's format. (#15507) 2020-03-23 17:57:49 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
4112f1c25b planner/bindinfo: fix occasional panic of baseline evolution (#15233) 2020-03-19 21:10:53 +08:00
9e97091de4 executor: add privilege check for show bindings (#14443) 2020-02-03 15:16:54 +08:00
9d38c5467a *: use 8 byte MysqlTime format (#14278) 2020-01-31 14:49:06 +08:00
cdf1430260 bindinfo: do not capture bindings for internal sqls (#14372) 2020-01-09 16:12:52 +08:00
9563ec77e4 config, infoschema: enable statement summary by default (#14369) 2020-01-08 14:50:39 +08:00
40a6be1a82 bindinfo: handle statement hints in bindings (#14248) 2020-01-07 14:18:46 +08:00
a6d26ac882 bindinfo: fix create time for duplicate bindings (#14155) 2020-01-07 13:24:38 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
e755459788 bindinfo: change the way of generate hints from sql (#14095) 2020-01-02 14:31:39 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
447cfbd067 bindinfo: fix bugs when capture and evolve plans (#14206) 2019-12-28 20:35:39 +08:00
635f2e1afd bindinfo: set default db for bindings correctly (#14077) 2019-12-27 18:02:09 +08:00
39a370ce83 bindinfo: support drop bindings of dropped table (#14071) 2019-12-19 14:51:46 +08:00
dddb85ca92 bindinfo: remove last semicolon of bind sqls (#14110) 2019-12-18 15:35:46 +08:00
f6fc7847b1 bindinfo: unify session variables of spm (#14005) 2019-12-12 15:09:28 +08:00
b04001b2a5 *: make golint happy #14025 (#14034) 2019-12-12 11:42:58 +08:00