Skip to content

Commit e748622

Browse files
authored
add system variable back for tidb_enable_point_get_plan_cache. (#20679) (#20723)
1 parent 1b740f6 commit e748622

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

system-variables.md

+8
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,14 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1;
25472547

25482548
</CustomContent>
25492549

2550+
### tidb_enable_point_get_cache
2551+
2552+
- Scope: SESSION
2553+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): YES
2554+
- Type: Boolean
2555+
- Default value: `OFF`
2556+
- When you set the table lock type of [`LOCK TABLES`](/sql-statements/sql-statement-lock-tables-and-unlock-tables.md) to `READ`, setting this variable to `ON` enables caching of point query results, reducing the overhead of repeated queries and improving point query performance.
2557+
25502558
### tidb_enable_prepared_plan_cache <span class="version-mark">New in v6.1.0</span>
25512559

25522560
- Scope: SESSION | GLOBAL

0 commit comments

Comments
 (0)