Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: sql 查询问题
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] v6.1
Has anyone encountered this issue? Initially, querying one month’s data was very fast, but later, when I changed it to query one year’s data, it couldn’t retrieve the data. After terminating this query SQL, I immediately changed it back to querying one month’s data, but it still couldn’t retrieve the one month’s data. I had to wait a while before it could query the one month’s data.
This raises a problem: if the previous SQL query fails to retrieve data while the program is running, it will affect the execution of subsequent SQL queries.