Commit Graph

174 Commits

Author SHA1 Message Date
19dae1fa73 *: separate auto_increment ID allocator from _tidb_rowid allocator when AUTO_ID_CACHE=1 (#39041)
close pingcap/tidb#982
2022-11-29 20:20:00 +08:00
15b523cb07 *: add a memdb memory tracker (#39372)
ref pingcap/tidb#35203
2022-11-25 19:03:59 +08:00
38e9aa02ef *: support foreign key on update cascade and set null when execute update statement (#38652)
close pingcap/tidb#38651
2022-11-01 13:07:59 +08:00
858b8a38ea *: add foreign key constraint check when execute insert statement (#37466)
close pingcap/tidb#37465
2022-09-24 00:41:43 +08:00
d0f8487dea *: support specifying range bits for auto_random (#36860)
close pingcap/tidb#32508
2022-08-16 20:54:50 +08:00
d6d0ce7b10 *: gofmt code for adapting go 1.19 (#36832)
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
45f82afa20 executor: revert #36498 to avoid perf regression (#37005)
ref pingcap/tidb#36438
2022-08-10 10:42:48 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
c80026e61f executor: also collect unchanged unique keys for lock (#36498)
close pingcap/tidb#36438
2022-07-25 21:43:11 +08:00
e9f3980853 table partition: exchange partition with table enhance (#35749)
close pingcap/tidb#35996
2022-07-21 00:13:09 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
b119f2620a table: fix NO_ZERO_DATE not work for insert into select statement (#34101)
close pingcap/tidb#34099
2022-04-26 18:10:51 +08:00
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
b5ded48df9 *: replace compareDatum by compare and fix compare (#30090) 2021-11-24 17:31:51 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
267a3b8162 executor: add auto id allocator execution runtime stats (#28013) 2021-10-08 17:35:24 +08:00
48c624b201 *: remove some unnecessary exported/interface functions (#28134) 2021-09-22 15:22:45 +08:00
777b40cb8c *: refactor Allocator.Rebase() interface (#27649) 2021-08-30 13:10:11 +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
5800336b52 executor, table: improve update ignore & Insert on duplicate ignore performance (#24203) 2021-04-25 23:01:55 +08:00
34b78579c7 executor: skip ignore check for not update indexes (#23894) 2021-04-12 21:21:51 +08:00
096281ec2f executor: fix 2nd index dup check after insert ignore on dup update primary (#23814) 2021-04-02 14:05:24 +08:00
9768e45476 session: add a test case for issue 19127 (#21010) 2021-03-04 11:50:54 +08:00
f55e8f2bf8 table: fix insert into _tidb_rowid panic and rebase it if needed (#22062) 2021-01-05 18:18:19 +08:00
f2a68ee28a executor: fix update ignore into not exists partition (#21984) 2020-12-30 16:44:13 +08:00
feab4cb9b8 executor: fix skipped update when the value is treated as the same in CI collations (#20786) 2020-11-04 17:07:16 +08:00
13bd62e183 ddl, executor: fix clustered prefix primary key truncation (#19320)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-20 14:45:22 +08:00
127ad504b2 table: optimize add record used in lightning (#18102) 2020-06-24 15:18:01 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
73c4673f30 *: support update/delete/insert ignore/duplicate update in single cluster index table (#17721) 2020-06-08 20:55:31 +08:00
3176b00c02 executor: fix the issue that UNIQUE constraint on boolean column results in an incorrect result in a comparison (#17245) 2020-05-20 13:55:18 +08:00
0de6925e12 ddl: Add some limit for auto_random (#17119) 2020-05-15 21:28:44 +08:00
1417ba2288 *: fix a bug that don't handle truncate properly for virtual generated column (#17217) 2020-05-14 20:57:55 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
7b25ce0d94 *: support auto_random table option (#16750) 2020-04-24 23:14:51 +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
c18b6dd2e2 executor: remove useless log (#16385) (#16616) 2020-04-22 23:55:10 +08:00
b504d37924 *: refine the table.Table interface (#15227)
remove unnecessary methods.
"The bigger the interface, the weaker the abstraction -- Rob Pike"
2020-03-10 13:40:56 +08:00
b3469e7964 *: fix a bug that the pessimistic lock doesn't work on a partition (#14921)
physicalID should be used if 'select for update' works on a
partitioned table.
2020-03-03 15:06:45 +08:00
e00887e3b9 executor: add memTracker for UpdateExec (#14299) 2019-12-31 21:59:31 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
9009da7378 *: lock unchanged rows for pessimistic transaction (#14045) 2019-12-13 12:00:28 +08:00
3173e6942f executor: fix update self-duplicate detect (#12249) 2019-09-18 23:25:17 +08:00
34a8ca30d6 executor: use the kv.PresumeKeyNotExists option in updateRecord() (#11720)
This change can avoid unnecessary network roundtrip when creating a primary key or unique index
2019-08-26 15:18:30 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
85c790ec97 planner, executor: tiny refactor (#11420) 2019-07-26 19:31:06 +08:00
b3f71868c1 executor: fix autoid doesn't handle float, double type and tin… (#11110) 2019-07-22 19:19:54 +08:00
ea6b865c08 executor: fix a logical error which is introduced in a previous refactor (#11060) 2019-07-04 11:46:03 +08:00
ff82b62b97 *: refactor the optional arguments for table.AddRecord and index.Create (#11018) 2019-07-02 15:51:29 +08:00