Commit Graph

10 Commits

Author SHA1 Message Date
7811bf9a37 *: use pprof profile to collect CPU time group by SQL and plan digest (#24892) 2021-06-02 12:51:39 +08:00
1c4fbfce50 server: close the temporary session in HTTP API to avoid memory leak (#24339) 2021-05-13 18:47:39 +08:00
8ea5930ea8 *: separate use of kv.Storage and tikv.Storage (#22891)
* *: separate use of kv.Storage and tikv.Storage

Signed-off-by: disksing <i@disksing.com>

* fix compile

Signed-off-by: disksing <i@disksing.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Co-authored-by: Shirly <wuxuelian@pingcap.com>
2021-02-24 17:54:03 +08:00
ea6ccf82e9 *: refactor the RestrictedSQLExecutor interface (#22579) 2021-01-29 12:56:44 +08:00
6931ece23d server: use ParseWithParams to avoid injection (#22545) 2021-01-27 11:14:54 +08:00
05b2e2bdcc *: refactor Execute() and clean up code (#17678)
- implement Execute using ExecuteStmt
- Execute is only for internal usage and accept only one statement
- clean up the old execute function
2020-06-09 13:58:39 +08:00
297e453a61 server: add test for /debug/sub-optimal-plan HTTP API (#14302) 2020-01-06 21:25:39 +08:00
795c630dbc Makefile: Replace Gometalinter to Golangci-lint (#13405) 2019-12-09 15:08:40 +08:00
tp
ad404bb645 *: avoid tidb-server -h output test flags (#11209) 2019-07-12 15:19:57 +08:00
91ab534be3 server: add http api to get some info of sub-optimal query (#10717) 2019-06-24 16:59:52 +08:00