Commit Graph

44 Commits

Author SHA1 Message Date
34ce5b5e60 topsql: optimize life cycle of stmtstats (#31727)
ref pingcap/tidb#31704
2022-01-17 21:11:45 +08:00
fb03dacbca *: periodically dump column stats usage into disk (#31072) 2021-12-28 21:27:51 +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
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
cddb584acd *: Use snapshot interceptor to do temporary table's point_get/batch_point_get (#28143) 2021-09-20 17:24:44 +08:00
9d3b67f450 sessionctx/context: fix comment typo to help generate godoc (#27901) 2021-09-13 18:16:40 +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
126c9b407b telemetry: Add telemetry information about builtin functions usage (#26234) 2021-07-21 18:01:36 +08:00
92ddceb6a4 executor: reject setting read ts to a future time (#25732) 2021-06-25 18:09:24 +08:00
acf5e52ffc session, executor: fix misleading function name and move staleness test (#24902) 2021-05-26 15:31:35 +08:00
98f0d76bc7 *: clean up the deserted syntax of START TRANSACTION READ ONLY (#24813) 2021-05-25 14:25:33 +08:00
xhe
bfdad7c752 *: milisecond test and infoschema fix (#24820) 2021-05-24 18:27:34 +08:00
6bfc5f8b44 *: support AS OF TIMESTAMP read-only begin statement (#24740) 2021-05-20 20:54:22 +08:00
f9708e6043 *: collect transaction write duration/throughput metrics for SLI/SLO (#23462) 2021-03-30 11:19:24 +08:00
4c0fe88a71 store/tikv: resolve sessionctx dependency (#22584)
Signed-off-by: disksing <i@disksing.com>
2021-01-29 17:09:14 +08:00
eae64e40fe executor: support exact staleness begin statement (#21897) 2020-12-31 22:08:14 +08:00
0d613a2dfa [executor, store/tikv]: implement a prototype for MPP framework. (#19954) 2020-10-26 14:46:47 +08:00
99d1163cbc *: use ID instead of NAME in mysql.schema_index_usage (#20589) 2020-10-23 14:42:29 +08:00
bdb6c49600 *: collect index usage information from point get and dump them to KV (#20126) 2020-10-16 16:17:34 +08:00
170e2fec92 *: collect multiple partitions and store in tidb (part II) (#19899) 2020-09-29 21:25:56 +08:00
ce849c3e19 *: remove DirtyDB and DirtyTable to reduce memory usage (#19042) 2020-09-04 16:50:36 +08:00
d0639b0056 *: use the newly designed memdb (#18657)
* *: use the newly designed memdb

* address comments

* remove duplicated comments

Co-authored-by: Evan Zhou <coocood@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-03 20:51:05 +08:00
51dabaabef *: refactor Handle in executor package (#16871) 2020-04-28 21:27:19 +08:00
78ac21914f server: add connection id for lock keys committer (#15685) 2020-03-27 18:21:14 +08:00
fe764a97a3 *: only add union scan when dirty table is not empty (#14265) 2019-12-31 13:20:27 +08:00
c1bc9ffe5b *: add memory tracker for InsertExec and ReplaceExec (#14179) 2019-12-30 11:43:01 +08:00
1335ffb6b7 *: support read consistency isolation level in the pessimistic transactions (#14087) 2019-12-24 21:24:39 +08:00
fb683bef2c executor: refactor union scan and dirty table (#11702) 2019-09-12 10:00:45 +08:00
dffe29355a *: not send tso request when point get with max tso (#11981) 2019-09-03 23:11:49 +08:00
1595c0101e *: replace context.WithValue string key to typed struct{} key (#11675) 2019-08-09 14:11:48 +08:00
612936bbd4 *: Support LOCK/UNLOCK TABLES feature (#10343) 2019-06-18 15:38:04 +08:00
8b84b94c96 *: fix union scan for partitioned table (#8871) 2019-02-28 13:43:45 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +08:00
46da21b5c1 *: support select tidb_is_ddl_owner, to figure out whether tidb instance is ddl owner (#6682) 2018-06-01 17:56:44 +08:00
b0fc67880c *: avoid passing 'for update' option via context in txn.Commit (#6529)
Pass option in context.Context make the code vulnerable, we should
avoid this style.
2018-05-17 01:56:25 -05:00
4185e53006 tikv/txn: support local latch in transaction (#6418) 2018-05-07 10:57:01 +08:00
96a51da57c * Add conn ID to the transaction log (#6115) 2018-03-26 20:13:07 +08:00
89dd754579 *: Improve code readability and unified aliases (#5958) 2018-03-06 10:25:18 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00