Commit Graph

38 Commits

Author SHA1 Message Date
a150267c8a optimizer: calculate digest only once for plan cache (#31479)
close pingcap/tidb#31269
2022-01-10 11:45:41 +08:00
57b2908957 planner: improve the bindSQL check for plan cache (#31054) 2021-12-28 15:28:20 +08:00
0d899cdd9e planner: remove bindSQL from planCacheKey to planCacheValue (#30916) 2021-12-23 16:37:47 +08:00
713e6994db planner: rename pstmtPlanCacheXX to PlanCacheXX (#30909) 2021-12-22 18:59:48 +08:00
529ce88c1c *: add TxnManager to manage txn in session (#30574)
* *: add TxnManager to manage txn in session

* modify

* add tests

* move failpoint content to a single file
2021-12-22 13:53:43 +08:00
af259faacf planner: support the plan cache aware of bindings (#30169) 2021-12-16 10:18:35 +08:00
db60f12253 config, planner: Change prepared-plan-cache.capacity default size from 100 to 1000 (#28984) 2021-11-01 16:14:51 +08:00
fba989f56d planner: fix the issue that plan-cache cannot be aware of changes of unsigned flags (#28827) 2021-10-15 10:37:26 +08:00
6c109c91f7 planner: forbid constant fold when plan cache enable (#28790) 2021-10-14 17:33:27 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +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
xhe
9189ec66ac *: stale reads compatible with prepare (#25156) 2021-06-11 19:32:35 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
42be9a4a8d planner: fix plan cache not working caused by type difference (#23175) 2021-03-22 20:29:36 +08:00
92b1b8e0e9 planner: check schema stale for plan cache when forUpdateRead (#22381) 2021-03-19 17:25:36 +08:00
07b19e0f90 config: disable prepare plan cache by default (#23240) 2021-03-11 16:26:19 +08:00
843e03996b *: do not report error for prepared stmt execution if tidb_snapshot is set (#22568) 2021-02-01 14:44:17 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
e102c12479 planner, config: Enable plan cache by default (#20416) 2020-10-29 23:00:26 +08:00
de6b82ef72 config: Revise SimpleLRUCache Configuration (#17532) 2020-06-18 19:48:33 +08:00
d53336bd4a planner: support sql_select_limit session / global variable (#17444) 2020-06-02 18:02:29 +08:00
64f0d4d211 planner: fix wrong prepare plan after isolation read changed (#16293) 2020-06-01 18:02:48 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
cfd875219e planner: invalidate cached plan if no UnionScan for tables that need it (#15429) 2020-04-01 16:05:36 +08:00
4e6151ee00 stmtsummary: cache digest in CachedPlanExec (#15464) 2020-03-21 17:48:01 +08:00
0b3597f73a stmtsummary: cache digest for prepared stmt and cached plan (#15448) 2020-03-18 14:40:54 +08:00
9ae471c0ee *: fix data race for plan cache (#14756) 2020-03-03 16:03:09 +08:00
e8294ad636 executor: try to cache executor for prepared point select (#12855) 2019-10-30 10:23:18 +08:00
2d3dfac071 executor: cache column info for prepare statement (#12388) 2019-09-29 11:21:02 +08:00
06629d6ac4 *: check privilege when reusing the cached plan (#12211) 2019-09-23 20:36:45 +08:00
59ea7460a8 planner: PointGet don't rely on names in expression.Column (#11779) 2019-08-26 15:40:39 +08:00
69b02a3736 *: make config items Performance.*, OOMAction and MemQuotaQuery support hot-reloading (#10295) 2019-04-29 16:38:46 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
84d1299bb2 config, util.kvcache: support the memory guard to prevent OOM for the plan cache (#8339) 2018-11-22 22:05:04 +08:00
61ee0da103 planner: cleanup prepare cache when client send deallocate (#8332) 2018-11-20 12:33:44 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00