Commit Graph

71 Commits

Author SHA1 Message Date
a2a48b3085 executor: use batch get to speed up LOAD DATA (#5632)
* use batch get to speed up LOAD DATA
2018-01-19 15:58:00 +08:00
f57b8438bc table: index.addindices reuse temp buffer (#5600) 2018-01-17 05:32:30 -06:00
4df3a04023 executor: fillDefaultValues store casted default values (#5586) 2018-01-15 20:24:50 +08:00
ca97bfffe0 tables: when importing data, table.AddRecord has no needs to use temp BufferStore. (#5617) 2018-01-15 15:13:23 +08:00
3ce567630b executor: store column's fieldType in executor (#5619) 2018-01-12 16:57:31 +08:00
31b606d30d executer: optimization for insert ignore (#5508) 2018-01-12 11:09:25 +08:00
b7e7cd5d9a executor: lazily initialize InsertValues.colDefaultVals, because not every insert statement needs it. (#5589) 2018-01-09 22:36:04 +08:00
e9b450aa0a table: InsertExec eliminate unnecessary CastValue. (#5581) 2018-01-08 19:21:04 +08:00
eddff3429a *: importing data reduce memory allocations. (#5549) 2018-01-07 12:48:07 +08:00
140c3d0739 executor: "InsertExec.NextChunk" should use function "getRowsSelectChunk" (#5493) 2017-12-26 18:24:41 +08:00
c4fb12d60e executor: support Chunk for LoadData (#5465) 2017-12-21 22:44:59 +08:00
fe7900f176 executor: DeleteExec suport NextChunk (#5368) 2017-12-21 15:57:56 +08:00
3c418c5617 executor: implement NextChunk for ReplaceExec (#5370) 2017-12-21 13:41:21 +08:00
65b2b0d452 *: Set the batch delete/insert size by session variable (#5413)
We hardcode it to 20k. But if the row size is large. It will still break
the transaction size limitation. So we need to provide a way to set it
dynamicially.
2017-12-17 21:11:18 -06:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
6ee266d0ca executor: UpdateExec support NextChunk (#5372) 2017-12-14 15:32:06 +08:00
8f5f071c9b executor: InsertExec support NextChunk (#5352) 2017-12-10 22:01:31 +08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
0ff13ce876 executor: simplify logic (#5185)
* : simplify
2017-11-22 00:55:56 -06:00
16003f0d82 executor: fix missing index update when automatic updating for timestamp 5172 (#5176) 2017-11-21 19:04:54 +08:00
c459da6887 *: refactor executor.checkHandleExists to tables.CheckHandleExists to reuse code (#5157) 2017-11-20 16:50:22 +08:00
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
e362f1ed56 types: add deepcopy for update operation (#5098) 2017-11-15 14:46:24 +08:00
cd5c665c8c executor: use baseExecutor for all Executors (#5087)
Makes it easy to add new method on Executor interface.
2017-11-13 21:06:31 +08:00
1aa2a69f92 expression: remove type assertion on types.DatumRow. (#5005) 2017-11-07 14:17:53 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
16eb0ae33b executor: fix bug when auto_increment meets unsigned. (#4824) 2017-10-19 15:31:16 +08:00
f2f473d02e executor: little improvement for multi-delete. (#4742) 2017-10-11 01:59:54 -05:00
eb8df3519a *: prepare to enforce errcheck, part1 (#4670) 2017-09-30 16:23:37 +08:00
a6756a4eee *: make insert with calculated value behave the same as MySQL. (#4603) 2017-09-27 19:59:31 +08:00
6f84392d40 *: optimize SortExec (#4622)
* *: change key of orderByRow from "key []types.Datum" to "key []*types.Datum"

* address comment
2017-09-25 19:50:26 +08:00
a60bbd9560 expression: refactor "helper.go" (#4593) 2017-09-22 18:54:04 +08:00
fc8b2ee47c fix #4514 (#4517) 2017-09-14 15:31:20 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
ae30c4dcbc support "UPDATE IGNORE", update conflicts generate warning (#4397) 2017-09-04 11:13:18 +08:00
a68d3ad1ee executor: "INSERT IGNORE" generate warnings for duplicate-key error (#4381) 2017-08-31 14:29:28 +08:00
46c1a0e3c3 support INSERT IGNORE with strict sql mode produces warning instead of error (#4376)
* fix infoschema not support unsigned
2017-08-30 17:02:35 +08:00
29cf5d92c0 executor: fix batch insert on duplicate key (#4344) 2017-08-28 18:42:37 +08:00
881d76840b plan,executor: calculate generated columns in CRUD. (#3951) 2017-08-23 14:52:43 +08:00
31edc09341 Add a system variable to enable automatic split delete data into batches. (#4256)
* *: Batch delete data
2017-08-21 10:37:24 +08:00
f5fd467f46 *: change terror.ErrorEqual to Error.Equal, which is more effetive (#4217) 2017-08-17 20:06:48 +08:00
c7c248eb91 executor: change struct row to []types.Datum (#4072) 2017-08-09 18:37:57 +08:00
059f6dd2f1 executor, expression, plan: remove rowMeta from row (#3758) 2017-08-04 18:37:31 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
597796e166 *: fix bad column offsets in DML. (#3754) 2017-07-28 20:56:25 +08:00
b55245dd83 executor: a naive support for load data fields enclosed by (#3759) 2017-07-20 15:08:24 +08:00