Commit Graph

864 Commits

Author SHA1 Message Date
81a852077a executor, parser: indicate analyze is auto or not in proto buffer (#34608)
close pingcap/tidb#34607
2022-05-20 17:42:38 +08:00
01fb9355d6 executor: add ALTER TABLE COMPACT support (#34741)
ref pingcap/tidb#34749
2022-05-19 00:44:38 +08:00
0ac659b4fb planner: fix the issue that the optimizer caches wrong TableDual plans under binary protocol (#34709)
close pingcap/tidb#34678, close pingcap/tidb#34690
2022-05-17 16:24:39 +08:00
d4df6b3c90 executor: get schema and outname of view once in the dataForColumnsInTable (#34658)
close pingcap/tidb#34657
2022-05-17 14:14:38 +08:00
5ca242761c executor: add test cover Analyze task for evicted index (#34622)
ref pingcap/tidb#34052
2022-05-13 14:46:35 +08:00
bbd7541322 *: refine 'tidb_snapshot' behavior (#34573)
close pingcap/tidb#34529
2022-05-11 20:54:34 +08:00
50f3d8faf8 *: retry auto-analyze with adjusted samplerate when oom panic (#34387)
close pingcap/tidb#29938
2022-05-11 18:08:34 +08:00
53f228af45 sysvari: enable statsCache lru by config (#34278)
* add statsquota variable

Signed-off-by: yisaer <disxiaofei@163.com>

* add test

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* fix conflict

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

* fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

* fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-05-10 23:49:54 +08:00
33236ba8d7 *: track analyze memory usage separately with quota (#33054)
ref pingcap/tidb#29938, close pingcap/tidb#33065
2022-05-10 20:32:35 +08:00
73f3435346 ddl: move some admin function to ddl (#34527)
close pingcap/tidb#34526
2022-05-10 18:14:34 +08:00
2258bc54c4 txn: Add EnterNewTxn and OnStmtStart methods to TxnManager (#34263)
close pingcap/tidb#34390
2022-05-07 21:02:32 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
d23a81488a *: Move stale read context to TxnManager (#33812)
close pingcap/tidb#31954, close pingcap/tidb#33014, close pingcap/tidb#33832
2022-04-25 16:52:51 +08:00
e21b435d0c *: fix index join on partition table data race (#33979)
ref pingcap/tidb#32846, close pingcap/tidb#33751, ref pingcap/tidb#33762
2022-04-19 09:48:02 +08:00
f988f54550 executor: add memory tracker for quering slow_query to avoid TiDB server oom (#33953)
close pingcap/tidb#33893
2022-04-14 14:54:36 +08:00
181bfb73f7 *: polish the table cache feature code (#33408)
close pingcap/tidb#33167
2022-04-08 21:46:33 +08:00
dbd8f15302 *: Add support for execute prepared statement to staleread.Processor (#32941) 2022-04-07 14:33:19 +08:00
ec637878d4 txn: fix invalid transaction error when doing stale read in RC isolation level (#33653)
close pingcap/tidb#30872
2022-04-02 11:12:29 +08:00
0f4706418e *: track cluster-level analyze jobs and make it persistent (#32215)
close pingcap/tidb#32403
2022-03-31 21:06:29 +08:00
b35b30bbd5 executor: support extractor for mem table region status (#33498)
close pingcap/tidb#33348
2022-03-30 16:12:29 +08:00
e56013779b executor: fix KVRange bug for index join with dynamic partition pruning (#33483)
close pingcap/tidb#33231
2022-03-30 12:14:29 +08:00
c58e00549d executor: Enhance task field for explain/explain analyze (#33333)
close pingcap/tidb#33332
2022-03-29 10:14:27 +08:00
c7a3f31d5b planner: Disable prepared plan cache for partitioned tables in dynamic prune mode (#33098)
ref pingcap/tidb#33031
2022-03-19 22:30:30 +08:00
d4d43ba0b4 txn: support read consistency read with ts checking (#32922)
close pingcap/tidb#33159
2022-03-16 20:49:52 +08:00
e110e73bf7 bindinfo: support disabled status for binding (#32819)
ref pingcap/tidb#32466
2022-03-16 15:45:52 +08:00
c11e650527 *: make golangci-lint work on Go1.18 (#33081)
close pingcap/tidb#33080
2022-03-15 22:43:52 +08:00
3393cf96a3 *: support mpp partition for tiflash (#31043)
close pingcap/tidb#32347
2022-03-15 18:35:52 +08:00
0cd9b243ce executor: fix data race in the AnalyzeColumnsExec (#32979)
close pingcap/tidb#32978
2022-03-14 11:53:51 +08:00
469bc71b0c parser, planner, executor: remove non-mpp broadcast Join (#31459)
close pingcap/tidb#31465
2022-03-11 00:41:50 +08:00
e4ced47fa2 planner,executor: fix cached table query with filter condition (#32590)
close pingcap/tidb#32422
2022-03-09 19:37:49 +08:00
4ab66b8ac2 executor: refine execution of cancelDDL (#32914)
close pingcap/tidb#32913
2022-03-09 14:51:49 +08:00
b9bd5a7d7e *: add explicit partition pruning to index joins (#32007) (#32093)
close pingcap/tidb#32007
2022-03-09 08:33:48 +08:00
493eb45c75 *: table partition dynamic prune mode with Physical Table ID from unistore (#31634)
close pingcap/tidb#29851
2022-03-04 01:21:46 +08:00
7e627e8222 executor: make the create/start/end time in admin show ddl jobs TZ aware (#32450)
ref pingcap/tidb#26642
2022-02-23 17:25:43 +08:00
1cf4fcfa73 *: support prepared plan cache for cached table (#32139)
close pingcap/tidb#32003
2022-02-14 12:29:37 +08:00
db
43b818b80d executor: add retriver for tikv_region_peers (#30657)
close pingcap/tidb#31050
2022-02-07 16:47:35 +08:00
07b0c7c657 executor: get the right result for stmt select ... for update union select … (#31956)
close pingcap/tidb#31530
2022-01-27 17:45:13 +08:00
9e928b2321 *: fix weak consistency not work (#31935)
close pingcap/tidb#31933
2022-01-25 14:24:11 +08:00
2e1cff73f3 *: add ExecRestrictedSQL() func for RestrictedSQLExecutor interface (#31618)
ref pingcap/tidb#30918
2022-01-24 21:30:11 +08:00
ad1c5b5081 *: add pushdown for ShowStmt and implement for show columns (#31742)
close pingcap/tidb#29910
2022-01-20 20:41:45 +08:00
4bab2b6dff *: Rename table placement_policies to placement_rules (#31698)
close pingcap/tidb#31425
2022-01-17 16:01:45 +08:00
6b1010f405 *: enable golangci-lint prealloc (#31521)
close pingcap/tidb#29004
2022-01-11 01:09:41 +08:00
a082abdc6f *: fix case-sensitivity issue with EQ/IN when query information_schema.columns (#31463)
ref pingcap/tidb#31481
2022-01-10 13:31:41 +08:00
5cd37f0008 session: fix data race in ParseWithParamsInternal (#31058)
close pingcap/tidb#30918
2022-01-06 21:02:37 +08:00
f7cc15fe60 executor: fix CTE bug when used with Apply (#31256)
close pingcap/tidb#31255
2022-01-06 15:34:38 +08:00
daa17c448d executor: Fix data race when getting snapshot ts in IndexLookupJoin and UnionExec (#30487)
close pingcap/tidb#30468
2022-01-05 19:20:37 +08:00
1127977277 *: add global variable @@tidb_cache_table_lease for cached table (#31018)
close pingcap/tidb#29485
2022-01-01 16:13:51 +08:00
0ab0dad9da *: allow TiDB to use TiKV's RC for high performance read (#30943)
close pingcap/tidb#30942
2021-12-30 16:57:50 +08:00
088a2444df *: persist analyze options for manual and auto analyze (#30939) 2021-12-30 00:39:49 +08:00