Commit Graph

322 Commits

Author SHA1 Message Date
093b27aea8 session: fix show variable result of tidb_enable_window_function after upgrade (#13866) 2019-12-03 15:54:39 +08:00
5a589c9994 planner: consider disk cost in hashJoin (#13246) 2019-12-03 13:43:19 +08:00
5fb669b68b session: fix CI data race in TestSchemaCheckerSQL (#13859) 2019-12-03 13:09:25 +08:00
d587c63062 *: some tiny improvements for the large transaction (#13815)
1. Set the default txn size limit to 1G
2. Reduce memory footprint during insert for the large txn
3. Recycle the session buffer memory to avoid leak
4. Set rate limit to avoid 2PC prewrite overloads the TiKV
5. Start ttlManager for the large txn
2019-12-03 00:40:40 +08:00
4b5ae3a34c session: refactor code to remove useless filed and return (#13841) 2019-12-01 23:01:53 -06:00
18fbe2d483 infoschema, util: refresh statement summary table periodically (#13680) 2019-11-28 15:39:22 +08:00
755fd1924b ddl: fix index length calculation (#13727) 2019-11-27 19:51:17 +08:00
2082b68a41 test: optimize session&planner/core unit test (#13580) 2019-11-27 17:25:55 +08:00
596fb64233 planner: support a hint to force using a IndexMerge path (#12843) 2019-11-27 15:44:25 +08:00
3a48a48630 *: remove the assertion proto (#13732)
The assertion proto was introduced to verify the data consistency, but I find
it's complex and hard to achieve that goal. Adding additional assertions just
makes more memory occupation, especially in the large transaction.
So it's better to remove it.
2019-11-26 22:58:49 +08:00
518692c14c bindinfo: support evolve plan (#13465) 2019-11-22 17:09:37 +08:00
8535b90104 session: add more information for retry error (#13525) 2019-11-19 15:52:25 +08:00
163132a5ca *: update the forUpdateTS for insert/replace into select statements (#13561) 2019-11-19 14:54:23 +08:00
359a667d42 store: implement non-block read when coprocessor meets the lock of a large transaction (#11986) 2019-11-19 13:20:00 +08:00
ebed3d606c executor: pessimistic txn update forUpdateTS for concurrent insert (#13553) 2019-11-19 10:51:53 +08:00
39a6f7f4cc *: make transaction duration metrics more reasonable (#13444) 2019-11-15 19:17:36 +08:00
2aa571b1ab test: make several slow package unit test support run parallel (#13431) 2019-11-14 12:47:42 +08:00
4283263b13 store : add store limit to restrain bad store from occupying too much token limit. (#12779) 2019-11-13 18:49:24 +08:00
58733475da *: support capture evolve plan tasks (#13199) 2019-11-13 16:22:48 +08:00
657b5236b8 session: make TestInnodbLockWaitTimeout faster and remove useless testcase (#13383) 2019-11-13 13:37:36 +08:00
2dfaf55410 sysvars: error code package for sysvar.go (#13366) 2019-11-12 13:01:29 +08:00
3f9f6a2780 session,store: make TestAsyncRollBackNoWait run faster to boost CI (#13377) 2019-11-12 12:41:49 +08:00
3712664d43 session,store/tikv: make CI more stable (#13303)
make TestBatchResolveLocks more stable
make TestErrorRollback faster
2019-11-09 17:09:19 +08:00
b7eddbf0f2 session: fix upgrade logic when bootstrap (#12827) 2019-11-09 11:08:43 +08:00
60d4291c5d store: upgrade the CheckTxnStatus API (#13123)
CheckTxnStatus introduces a non-block read mode. In this mode, TiDB can ignore
the secondary lock TTL check and send the CheckTxnStatus request.
2019-11-07 19:09:13 +08:00
e43444265b *: Support required rows rows for arrow decode format. (#12613) 2019-11-05 18:12:09 +08:00
5fd8b4d251 executor: support innodb_lock_wait_timeout for pessimistic transaction (#13103) 2019-11-05 17:26:40 +08:00
f12403ef08 executor: support select for update no wait (#12775) 2019-11-04 17:01:40 +08:00
000c1ba5db planner, session: add isolation read with engine type (#12997) 2019-11-01 15:47:12 +08:00
e8294ad636 executor: try to cache executor for prepared point select (#12855) 2019-10-30 10:23:18 +08:00
ee4f1f9c1e store: stop updating pessimistic transaction's lock TTL when the session is killed (#12959) 2019-10-29 17:45:21 +08:00
4907685ed2 *: fix bug that the kill command doesn't work when the killed session is waiting for the pessimistic lock (#12852) 2019-10-24 17:26:12 +08:00
d6270085f4 executor: fix data race in test (#12910) 2019-10-23 23:41:29 +08:00
77a5526f59 session: speed up test by reduce pre-write back-off time (#12863) 2019-10-22 15:15:43 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
740b7769b0 *: support automatically create sql baselines (#12434) 2019-10-17 14:16:48 +08:00
20823fbe18 *: add a system variable to control the usage of baselines (#12624) 2019-10-14 21:09:03 +08:00
fbf0d90c06 executor: error processing refactor for load data (#12465) 2019-10-11 13:01:32 +08:00
253cd1f8ab session: remove the mockFail field from txnFuture (#12545)
Signed-off-by: Lonng <heng@lonng.org>
2019-10-08 23:30:47 +08:00
ea6d00be04 *: add a new way to calculate TPS (#12411) 2019-09-30 18:25:37 +08:00
5b3df63ced executor: case refactor for point execution (#12486) 2019-09-30 16:10:08 +08:00
1a9fcb9c20 *: replace cost model factor constants with system variable (#12367) 2019-09-30 14:24:07 +08:00
41ac571d7b *: remove the LightningMode from TiDB (#12466) 2019-09-29 15:12:01 +08:00
d5094bc304 session: remove unused global variable (#12460)
Signed-off-by: Lonng <heng@lonng.org>
2019-09-29 11:11:02 +08:00
99a5432dce *: encode the returned data using the Chunk format in mocktikv (#12023) 2019-09-28 20:02:26 +08:00
ba9d1ca960 *: adjust delta schema count and add metrics (#11625) 2019-09-27 20:33:18 +08:00
a582640dc3 executor: make point updates go short path (#12243) 2019-09-27 18:36:01 +08:00
74eaf327e9 *: log each com_stmt_fetch separately (#11987) 2019-09-25 17:57:16 +08:00
fef1eac084 store/tikv: implement a ttlManager to update the TTL of a transaction (#12177) 2019-09-25 16:33:42 +08:00
06629d6ac4 *: check privilege when reusing the cached plan (#12211) 2019-09-23 20:36:45 +08:00