Commit Graph

163 Commits

Author SHA1 Message Date
ad53ac2625 config: add unit test for assert tidb_stats_cache_mem_quota (#34633)
ref pingcap/tidb#34052
2022-05-13 18:28:36 +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
6d8669e987 *: Add support for GET_LOCK() / RELEASE_LOCK() / RELEASE_ALL_LOCKS() (#33947)
close pingcap/tidb#14994
2022-04-29 23:12:53 +08:00
0d5ac6f3cb sysvar, config: mapping config settings to system variables. (#33279)
ref pingcap/tidb#32887
2022-04-29 13:20:52 +08:00
91cb86e3cf domain, sessionctx/variable: make code DRY (#33897)
close pingcap/tidb#33896
2022-04-28 20:26:52 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
669b9bcd36 validation: fix set readonly variable max_allowed_packet should return error (#33658)
close pingcap/tidb#32349
2022-04-20 09:02:02 +08:00
212a6b22af planner: introduce the new cost interface (#33990) 2022-04-19 14:03:09 +08:00
4d3a3c259a server: use max_allowed_packet to limit the packet size. (#33651)
close pingcap/tidb#31422
2022-04-18 11:24:03 +08:00
fa834a0806 planner: Add control flag to keep or remove ORDER BY in subquery (#33173)
close pingcap/tidb#32900
2022-04-01 14:08:29 +08:00
d4ec94736d *: make txnCommitBatchSize adjustable by SQL (#33507)
close pingcap/tidb#33508
2022-03-30 21:52:29 +08:00
5bf5e35e81 variable: make backoff weight could be 0 (#30664)
close pingcap/tidb#32592
2022-03-29 17:20:28 +08:00
d981c0e06a sysvar: add INSTANCE scope for system variable (#32888)
ref pingcap/tidb#32887
2022-03-16 11:15:52 +08:00
911cf5335f bindinfo: add warning message when the memory usage of the cache exceeds its capacity (#32866)
ref pingcap/tidb#32466
2022-03-15 16:15:52 +08:00
678397ba62 planner: ignore close-stmt to make more queries can hit plan cache (#32928) 2022-03-15 14:13:20 +08:00
9a4ca3ca69 *: Remove deprecated streaming (#32765)
ref pingcap/tidb#32679
2022-03-11 03:15:50 +08:00
52fa48ce2b sessionctx,executor: Revert "sessionctx,executor: disallowed set null to sysvar" (#32988)
close pingcap/tidb#32987
2022-03-10 23:13:51 +08:00
77730b6d9e sessionctx,executor: disallowed set null to sysvar (#32879)
close pingcap/tidb#32850
2022-03-10 01:13:49 +08:00
8134942c32 *: add a global system variable to control the memory quota for the bindCache (#32613)
ref pingcap/tidb#32466
2022-03-01 11:37:45 +08:00
7f7f095a45 executor: migrate test-infra to testify for set_test.go (#32684)
close pingcap/tidb#28608
2022-03-01 11:11:45 +08:00
ec3ae9fc42 *: refine some tests related to the collation (#32000)
ref pingcap/tidb#31625
2022-01-27 11:51:13 +08:00
39a8562541 executor: fix 'set config' string escaping (#31319)
close pingcap/tidb#31258
2022-01-25 11:26:11 +08:00
2207b26e19 topsql: rename topsql related variable and remove useless variable (#31599)
close pingcap/tidb#31433
2022-01-18 18:15:44 +08:00
974b5784ad topsql: make topsql enable only be controlled by pub/sub sink (#31209) 2021-12-31 16:49:20 +08:00
072561c85b sessionctx: make tidb_enable_column_tracking off by default (#31204)
close pingcap/tidb#31205
2021-12-31 13:45:51 +08:00
8085c99ddf *: implement analyze predicate columns (#30816)
close pingcap/tidb#31102
2021-12-30 15:45:50 +08:00
e9ab05f90f topsql: move topsql variable to topsql/state for avoid import cycle (#31134)
close pingcap/tidb#31136
2021-12-29 19:51:50 +08:00
24d970fc46 executor: improve SET sysvar=DEFAULT handling (#29680)
close pingcap/tidb#29670
2021-12-20 07:57:45 +08:00
813f6efd41 sessionctx/variable: change tidb_store_limit to global only (#30522) 2021-12-15 09:40:35 +08:00
c30d34f07f planner: Introduce a new global variable to control the historical statistics feature (#30646) 2021-12-14 19:08:36 +08:00
12e2288440 topsql: shouldn't evict the SQL meta, since the evicted SQL can be appear on Other components (TiKV) TopN records (#27050) 2021-12-13 20:58:35 +08:00
3d9196ddea *: allow setting @@tidb_tso_client_batch_max_wait_time to a float millisecond (#29699) 2021-11-14 03:29:05 +08:00
1f39a9f81d *: add two session variables to control the PD client option (#29120) 2021-10-31 00:12:49 +08:00
ce8e734ea2 variable: rename tmp_table_size to tidb_tmp_table_max_size (#29123) 2021-10-28 17:24:50 +08:00
676683383b *: add support for removed sysvars (#28931) 2021-10-22 11:32:46 +08:00
e6c600ad16 *: always convert sysvar values when out of range (#25686) 2021-10-13 10:37:27 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
17d2ae36d1 *: make sysvar tidb_enable_noop_funcs support a WARN mode (#28443) 2021-09-30 11:02:48 +08:00
c01f1a3c5f config: change tidb_top_sql_agent_address to config top-sql.receiver-address (#28135) 2021-09-22 17:48:45 +08:00
afca7649fa planner: refine prefer-range-scan behavior (#27123) 2021-09-02 12:06:14 +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
b452fe99c1 executor: allow SET CONFIG to accept hostnames (#26906) 2021-08-05 11:29:13 +08:00
c13d51e5fd domain, executor: fix sysvar cache race (#26714) 2021-08-04 13:23:06 +08:00
0bcf830fab varaible: fix the new session can't see the instance-level variable store-limit (#26649) 2021-08-02 18:31:06 +08:00
51c48d2fa2 planner: update the correlation adjustment rule of Limit/TopN for TableScan (#26445) 2021-07-27 17:34:16 +08:00
e0dbe7ae8a planner: push TopN down when N is less than a specific variable (#26550) 2021-07-27 16:38:16 +08:00
8f8dcf3a06 *: temporarily skip some unstable test cases (#26149) 2021-07-12 20:21:32 +08:00
0db5df550b planner: rename stable-result-mode to ordered-result-mode (#26093) 2021-07-12 16:01:32 +08:00
c24a90f9e7 planner: support stable result mode (#25971) 2021-07-06 15:11:29 +08:00
7cafe813a0 server: try to make test TestTopSQLAgent stable (#25399) 2021-06-21 16:38:53 +08:00