Commit Graph

32 Commits

Author SHA1 Message Date
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
8a661044ce multi-query prefetch support pessimistic transaction (#18439)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-10 18:47:56 +08:00
6fa2badf38 util: move codec logic into tablecodec package (#18173)
* move codec logic into tablecodec package

* add key generation using physical table id

* remove using prefix

* change comment

* fix conclict

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-24 17:43:10 +08:00
d445e55fc4 planner,executor: fix select big number on hash partition table panic (#17881) 2020-06-12 15:32:52 +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
88dfb22dc5 executor: support batch-get cluster index & add test case (#17858) 2020-06-09 13:40:47 +08:00
73c4673f30 *: support update/delete/insert ignore/duplicate update in single cluster index table (#17721) 2020-06-08 20:55:31 +08:00
526a711c67 session, tikv: allocate task IDs for distsql requests (#16520) 2020-05-13 11:47:05 +08:00
51dabaabef *: refactor Handle in executor package (#16871) 2020-04-28 21:27:19 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
af376db3dc *: refactor Handle in tablecodec and rowcodec (#16705)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-23 18:55:59 +08:00
cad52c1f6e *: do not lock the non-exists keys in RC isolation (#15803) 2020-03-31 11:11:12 +08:00
5282d089c7 executor: support generated column on point get and batch point get (#15544) 2020-03-23 14:21:35 +08:00
53e5197b02 executor: reuse transaction snapshot if applicable (#15400) 2020-03-16 18:25:54 +08:00
f96884af93 *: fix BatchPointGet return empty value for already locked key. (#15365) 2020-03-14 18:43:31 +08:00
dc8098bc73 planner: BatchPointGet support partition table (#15327) 2020-03-13 09:10:32 +08:00
0abbd9865d server: make unique index could be used in fast path for batch point get, and do lock keys (#15266) 2020-03-11 14:32:04 +08:00
9e98f706ae planner, executor: support point get as a option of DataSource (#14775) 2020-03-09 10:47:16 +08:00
e9ba1446f6 executor: support SELECT FOR UPDATE for BatchPointGet (#15129) 2020-03-05 19:47:16 +08:00
b6aca51d52 plan, partition: support point get plan on hash partition table (#14318) 2020-01-10 10:23:29 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
94481e883d session: if txn invalid do not active it and return an error (#13935) 2019-12-09 13:41:09 +08:00
40c9f9c6e4 executor: fix a batch get executor bug inside a transaction (#13473)
When the BatchGetExec runs inside a transaction, it should consider the data changes
in the membuffer.
2019-11-15 16:55:05 +08:00
2addc25984 planner: use BatchPointGet to improve SELECT ...WHERE IN performance (#11750) 2019-08-20 19:10:35 +08:00