Commit Graph

336 Commits

Author SHA1 Message Date
a81f8e36a1 kv: replace memdb with a more memory efficient version (#11807) 2019-08-29 11:42:06 +08:00
727d73670d kv, store: simpilify lazy condition pair (#11816) 2019-08-26 15:48:54 +08:00
1c1faab678 *: convert key to hex for logs (#11781) 2019-08-20 11:10:16 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
df2075d745 *: remove the transaction kv count limit (#11141) 2019-08-09 20:35:37 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
1595c0101e *: replace context.WithValue string key to typed struct{} key (#11675) 2019-08-09 14:11:48 +08:00
036e7e207d *: support new 'log' format for trace (#11681) 2019-08-09 12:43:33 +08:00
3b6d2f475f executor/split: return split result when do split region and refine split timeout logic. (#11259) 2019-07-23 17:35:13 +08:00
04cfda8699 *: add show table regions syntax (#10612) 2019-07-10 11:54:52 +08:00
89baed8e17 ddl: scatter the regions of table when creating them (#10980) 2019-07-10 11:09:14 +08:00
e1f2b3728d *: make assertion check more reasonable (#10424)
Make sure there are no "ASSERTION fail" logs in session and executor unit test
2019-07-04 16:20:38 +08:00
c78622848d config, kv: make TxnEntryCountLimit and TxnTotalSizeLimit configurable (#9035) (#9952) (#11058) 2019-07-04 12:23:20 +08:00
41fc7b2d7c kv: tiny cleanup (#10961) 2019-06-28 14:22:57 +08:00
91b889d2b5 store/tikv: fix insert on dup update for pessimistic transaction (#10905) 2019-06-24 14:56:46 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
bb3a92d70f expression: add a failpoint switch to control expr push down in integration test (#10786) 2019-06-14 15:43:29 +08:00
c729dd55ca kv: add more unit test (#10620) 2019-06-03 00:04:18 -05:00
233554a25d *: refine the error message in latch (#10566) 2019-05-22 19:53:57 +08:00
d97e7d93c7 *: refine transaction retry error messages (#10466) 2019-05-15 17:51:07 +08:00
373748adf7 *: support pessimistic transaction (experimental feature) (#10297) 2019-05-11 09:48:45 +08:00
d8589df2f3 *: add a variable to control the back off time and disable txn auto retry by default (#10266) 2019-05-08 10:23:49 +08:00
6f67214b50 kv: remove the useless field of snapshot (#10276) 2019-05-05 10:58:21 +08:00
8d8bfccef7 storage: add some new interfaces for Storage (#10204) 2019-04-22 10:33:21 +08:00
7447f04409 executor: trace and control memory usage in DistSQL layer (#10003) 2019-04-12 16:43:55 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
7a1fe18da6 kv: refine ErrEntryTooLarge error msg (#9881) 2019-03-26 21:45:36 +08:00
5ed3553bfb *: check more errors in test. (#9859) 2019-03-24 16:16:46 +08:00
b78490e403 *: use the unified log format for the remaining packages (#9743) 2019-03-22 16:34:47 +08:00
3910a720df *: add assertion in kvproto to check data consistency (#9180) 2019-03-08 16:49:31 +08:00
18449d777a *: merge statement buffer when BatchGetValues (#9374) 2019-02-22 11:06:58 +08:00
f7dc9157e2 Push down condition check to TiKV for prewrite request (#9127) 2019-02-19 19:45:41 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
0e89c02ffb *: clean up code for insert/update statement (#8867) 2018-12-29 18:46:47 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
36bcf5db4a tidb/kv: remove useless errors.Trace (#8527) 2018-11-30 14:30:31 +08:00
e233ee9601 kv, store: remove Rollback in RunInNewTxn (#8250) 2018-11-12 16:39:58 +08:00
d125958380 tikvclient: Add endKey param to Scanner (#8178) 2018-11-08 18:21:40 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
a8f2909d40 *: remove kv.BypassLatch option and enable latch scheduler by default (#7882)
kv.BypassLatch was introduced to handle the fake transaction confliction problem
in the old implementation. After redesign of the latch scheduler, it's not
needed any more.

Enable latch scheduler makes CI to run it, we can fix bugs and make this feature
more stable.
There is a small performance penalty, less than 5%, users are free to disable it.
2018-10-15 13:49:38 +08:00
77ef4855ff kv: optimize IsPoint (#7722) 2018-09-21 12:41:32 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
b4fdaf35ac Add keyonly support for seek (#7419) 2018-08-30 23:37:03 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
e3952d6eb8 *: collect execution details and output them in slow query log (#7302) 2018-08-10 21:06:20 +08:00
e28a81813c *: check the schema-validity when the DDL fails (#6797) 2018-07-09 17:35:04 +08:00