Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb 的dashboard 中的SQL语句分析数据来源
-
Yes, some of the data sources for SQL statement analysis in TiDB’s dashboard come from the STATEMENTS_SUMMARY and STATEMENTS_SUMMARY_HISTORY tables under the information_schema database.
-
The STATEMENTS_SUMMARY and STATEMENTS_SUMMARY_HISTORY tables can store data for a certain period or a specific number of entries. The official documentation might not be very detailed. According to the configuration, statements_summary is cleared every 30 minutes, so statements_summary_history retains the last 12 hours of historical data. —> Why does statements_summary_history retain the last 12 hours of historical data?