[TiDB Usage Environment] Online, Testing, Research
[TiDB Version]
[Encountered Problem]
[Reproduction Path] What operations were performed to cause the problem
[Problem Phenomenon and Impact]
[Attachments]
Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.
Support caching execution plans for PREPARE/EXECUTE prepared statements; execution plans for regular SQL cannot be cached. The execution plans for prepared statements are cached in the memBuffer of the TiDB instance.
The execution plan cache feature only applies to Prepare / Execute requests and is ineffective for regular queries. Plan Cache is at the SESSION level.
From what I read in the documentation, the feature for prepared statement execution plan caching is available from version 5.4 onwards. Does this mean that version 4 does not support any execution plan caching?