Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 什么类型的SQL不需要获取TSO
【TiDB Usage Environment】Production\Testing Environment\POC
【TiDB Version】
【Encountered Issues】
【Reproduction Path】What operations were performed that led to the issue
【Issue Phenomenon and Impact】
【Attachments】
- Relevant logs, configuration files, Grafana monitoring (https://metricstool.pingcap.com/)
- TiUP Cluster Display information
- TiUP Cluster Edit config information
- TiDB-Overview monitoring
- Corresponding module Grafana monitoring (if any, such as BR, TiDB-binlog, TiCDC, etc.)
- Corresponding module logs (including logs from 1 hour before and after the issue)
As described officially, “During the execute phase, TiDB interacts with PD and TiKV. As shown in the figure below, when TiDB processes SQL statement requests, before parsing and compiling, if it needs to obtain TSO, it will first request to generate TSO.”
So, what types of SQL do not need to obtain TSO? Or in what situations do SQL statements not need to obtain TSO? Additionally, is the TSO acquisition for SQL statements generally completed before parsing and compiling, or is it done in parallel with parsing and compiling?
If the question is related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.