Commit Graph

74 Commits

Author SHA1 Message Date
0ab0dad9da *: allow TiDB to use TiKV's RC for high performance read (#30943)
close pingcap/tidb#30942
2021-12-30 16:57:50 +08:00
fe1aaf2fd7 topsql: introduce stmtstats and sql execution count (#30277) 2021-12-21 15:43:47 +08:00
b11171aa71 topsql: distinguish the row and index operation type (#29044) 2021-11-24 10:17:51 +08:00
9c683d3f67 dml : Support point get / batch point get for cache table (#29703) 2021-11-15 15:49:07 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
87648de76e store: fix closest_replicas can't work during follower read (#28419) 2021-09-28 15:10:47 +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
f710f3d9a3 executor: support selecting store by tidb_replica_read for stale read (#28033) 2021-09-15 14:52:41 +08:00
193b74ecbb executor: rename txnScope as readReplicaScope instead (#27987) 2021-09-14 12:54:40 +08:00
462c9dc5ca *: Add temp_table_size support for local temporary table (#27205) 2021-08-16 22:19:59 +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
a69f2bd5ce go.mod: update client-go to version 20210728 (#26685) 2021-07-29 14:50:17 +08:00
2f028b3cbd executor: Implement batch point get for local temporary table (#26290) 2021-07-19 11:19:34 +08:00
3a5f434aad txn: change lock into put record for unique index key lock (#25730) 2021-07-14 10:57:32 +08:00
799591a06f session: read local dc replicas automatically for stale read (#25525)
* fix select

Signed-off-by: yisaer <disxiaofei@163.com>
2021-06-18 17:13:38 +08:00
xhe
1a669a38c4 executor: snapshot for (batch) point get not working correctly (#25346) 2021-06-15 12:04:37 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
69274d8864 store: refine the error handling and retry mechanism for stale read (#24956) 2021-06-03 17:52:26 +08:00
ac04473227 planner, executor: support batchget for range and list partition table (#24856) 2021-05-28 21:01:35 +08:00
045e18f1c6 executor: do not send snapshot request for (batch) point get on temporary table (#24804) 2021-05-25 20:07:34 +08:00
051524ce95 kv: remove DelOption method (#24762) 2021-05-25 17:53:34 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
559a0067fa store/tikv: extract methods for LockCtx (#24736) 2021-05-24 15:59:33 +08:00
8fb29eb17e kv: move TxnScope into kv (#24715) 2021-05-19 20:01:42 +08:00
2df8c3bfd1 store/tikv: resolve ReplicaReadType dependencies (#24653) 2021-05-17 14:09:39 +08:00
d2bdfd51b7 store/tikv: move transaction options out to /kv (#24619) 2021-05-13 17:49:39 +08:00
3e58fbf4d9 store/tikv:move LockCtx from kv to tikv/kv (#24020) 2021-04-15 22:23:53 +08:00
d339eb15eb planner: generate BatchPointGet for hash table partitions (#23733) 2021-04-13 15:09:51 +08:00
1e2cbf9a22 store/tikv: use []byte instead of kv.Key in package store/tikv (#23859) 2021-04-13 12:39:52 +08:00
72ebeddfa4 store/tikv: move BufferBatchGetter from tidb/kv to tikv/unionstore (#23871)
Co-authored-by: disksing <i@disksing.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-12 10:58:22 +08:00
d0291c802a executor: fix batchget overflow lock panic (#23774) 2021-04-01 03:33:24 +08:00
67874c579a executor: fix a panic when batch point get is used for partition table (#23652) 2021-03-30 17:25:24 +08:00
efe172b0e0 store/tikv:move option from kv to tikv, and make define as a normal int (#23171) 2021-03-22 20:13:36 +08:00
b983856ddf store/tikv:mv kv.ReplicaReadType to tikv (#23376) 2021-03-19 21:19:36 +08:00
29908c67e7 store, executor: support stale read for tikv RPCContext (#22176) 2021-03-05 18:12:55 +08:00
c6fae57f4e executor: check not exist error in batch point get for cached tables (#22264)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-01-07 17:17:58 +08:00
73a6f53a3a *: cache batch point get for read-only table (#22165)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-01-07 14:19:44 +08:00
f51bdfc514 executor: do not read from lock cache when snapshot read (#21529)
Signed-off-by: you06 <you1474600@gmail.com>
2020-12-07 20:17:17 +08:00
83814613e1 executor, store/tikv: locks exist keys for point_get & batch_point_get (#21229)
Signed-off-by: you06 <you1474600@gmail.com>
2020-12-03 21:28:48 +08:00
e6e894dcc4 executor: add missing update table delta for TxnCtx (#20982) 2020-11-19 10:58:45 +08:00
81fa1b37e8 *: refactor GetSnapshot (#20475)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-10-16 11:30:43 +08:00
10fd834463 executor: fix sort result for batch-point-get by unsigned pk (#20108) 2020-09-24 22:00:08 +08:00
bada2801ac *: fix cop task runtime information is wrong in the concurrent executor (#19849)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-11 14:14:37 +08:00
650be7c438 execute: add rpc runtime stats information for insert/update/replace statement (#19334) 2020-08-24 16:10:33 +08:00
a2e2ce6339 *: use int instead of fmt.Stringer as executor id (#19207) 2020-08-19 13:39:31 +08:00
ed4004ac04 executor: fix apply with union scan and point batch point get (#19128) 2020-08-12 10:49:30 +08:00
4000174c8c executor: fix batch point get return wrong result for in(null) (#18851)
* executor: fix batch point get return wrong result for in(null)

* fix CI

* address comment

Co-authored-by: crazycs <crazycs520@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Evan Zhou <coocood@gmail.com>
2020-07-30 17:17:03 +08:00
c397584065 executor: add runtime information for the batch-point-get executor (#18828) 2020-07-30 12:35:41 +08:00
6ce8f0f56a txn: support pessimistic transaction amend for specific ddls (#18447) 2020-07-29 11:35:31 +08:00
1e7454c81d executor: batch point get support clustered index partition table. (#18829)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-28 21:34:09 +08:00