4cd5d15d97
*: improve plan cache param eval and insert const ( #10746 )
2019-08-27 11:11:01 +08:00
d210889a6c
*: trace the execution of the insert operation ( #11667 )
2019-08-09 14:22:03 +08:00
036e7e207d
*: support new 'log' format for trace ( #11681 )
2019-08-09 12:43:33 +08:00
28c0b1d226
executor: tiny refactor the insertRows function ( #11643 )
2019-08-07 21:28:44 +08:00
9385c6eca0
executor: fix a bug of 'insert on duplicate update' statement on partitioned table ( #11204 )
...
In this statement: insert into t1 set a=1,b=1 on duplicate key update a=1,b=1
Batch checker find a=1,b=1 is duplicated, then in the "on duplicate update" step,
it uses the non-partitioned table to get the old row, which is a bug.
getOldRow returns this error: (1105, u'can not be duplicated row, due to old row not found. handle 1 not found')
2019-07-11 15:24:27 +08:00
d244723a5e
executor: remove unused structure RecordBatch ( #10891 )
2019-06-26 15:26:16 +08:00
c8d1ff7ca6
*: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' ( #10866 )
2019-06-21 19:13:31 +08:00
8183f35563
executor: tiny clean up ( #10875 )
...
code refactor for the tracing related code
2019-06-20 16:35:59 +08:00
1c4ebee8de
executor: should handle virtual columns when fetching duplicate rows in batchChecker ( #10370 )
2019-05-08 10:18:52 +08:00
e9653675dd
*: remove errors.Trace in main handle path ( #10033 )
2019-04-04 14:27:15 +08:00
f738ba24ad
executor: replace logger with zap logger ( #9521 )
2019-03-14 15:14:38 +08:00
00c4ff4fa9
*: refactor Executor.Next() to receive RecordBatch ( #8994 )
2019-01-14 15:04:36 +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
7528a059cf
executor/server/session: add extra info message sent to mysql client ( #8285 )
2018-12-19 15:32:49 +08:00
ef0ad26da8
executor,table: remove redundant if condition and fix comment typos ( #8627 )
2018-12-10 23:48:53 +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
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
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
d8b52b82a8
executor: improve wide table insert & update performance ( #7935 )
2018-10-23 18:07:54 +08:00
d7a59ec5a3
executor: remove some useless code and avoid some redundancy check ( #7639 )
2018-10-12 12:56:02 +08:00
33a30cc780
executor: Fix a bug in 'INSERT ... ON DUPLICATE KEY UPDATE' ( #7675 )
2018-09-14 22:49:17 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
9070bb6b86
executer: fix the last_insert_id in insert on duplicate key update ( #7534 )
2018-08-30 14:16:30 +08:00
1dc41d8b79
add logs for replace and insert on dup ( #7436 )
2018-08-21 12:43:41 +08:00
233660af69
Revert "*: add a String method for Datum to make the log more friendly ( #7426 )" ( #7435 )
...
This reverts commit 7773b283907017ccf4835e22091c7a0508cf5383.
2018-08-20 15:17:17 +08:00
7773b28390
*: add a String method for Datum to make the log more friendly ( #7426 )
2018-08-20 14:09:26 +08:00
1558a9c096
executor: fix duplicate row check when chunk size is small ( #7393 )
2018-08-17 16:52:52 +08:00
f6dbad0f5c
*: move the dirty table modification to table package ( #7289 )
2018-08-07 15:38:01 +08:00
a5af7a0e1f
*: remove variable 'tidb_import_data' and rename SessionVars.ImportingData to LightningMode ( #7262 )
2018-08-03 10:00:03 +08:00
2fba9931c7
*: remove DatumRow ( #7165 )
2018-07-26 19:42:58 +08:00
50193eb975
executor: speed up replace into statement ( #7027 )
2018-07-18 16:33:59 +08:00
5bdf34b9bb
plan: fix "INSERT ... ON DUPLICATE KEY UPDATE" ( #6593 )
2018-07-09 13:25:23 +08:00
ab332eba2a
executor: BadNullError should be ignored by insert ignore statement ( #6465 )
2018-06-29 13:15:31 +08:00
ebf0a9b87b
executor: reduce memory usage of insert select from statement ( #6891 )
2018-06-26 16:29:24 +08:00
3c0bfc19b2
executor: improve performance for insert ignore on duplicate key update statement ( #6760 )
2018-06-19 20:28:06 +08:00
4a36ef721c
executor: DML use DatumRow ( #6720 )
2018-06-01 10:22:02 +08:00
ce071f5dd3
refactor load data ( #6665 )
2018-05-29 21:19:14 +08:00
36c3f0dd36
split write.go ( #6660 )
2018-05-28 14:29:42 +08:00