Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb_enable_pseudo_for_outdated_stats提一个问题
【TiDB Usage Environment】Production
【TiDB Version】
【Encountered Problem】
tidb_enable_pseudo_for_outdated_stats
【Reproduction Path】What operations were performed to encounter the problem
【Problem Phenomenon and Impact】
What will be the impact if tidb_enable_pseudo_for_outdated_stats
is set to off?
【Attachments】
Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.
After a table has been extensively modified (the documentation says 80%), if it is set to off, the optimizer will not recollect statistics and will still use the original statistics. This may affect the execution plans generated for subsequent operations on this table, as the information is outdated.
Yes, now that I have disabled it, the statistics will not expire, right?
You can import and export fixed statistics.
This is the PCTP lab manual, right?
Disabling this parameter will still cause the statistics to expire, but even if they expire, the optimizer will still use the statistics on the table instead of pseudo statistics.
There may be a statistics locking feature in the future.
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.