Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 引擎切换问题
When querying based on the time field with millions of data tables that have the TiFlash engine enabled, the default query uses TiKV. Forcing the query to use TiFlash is significantly faster than using TiKV. Is there a problem with the CBO optimizer?
TiDB version? Number of TiFlash replicas? Execution plan?
Are the statistics accurate?
Please send the query statement, it is probably an issue with the statement.
Without any information, others can’t help either.
Statistics and re-statistics worked.
Regarding the engine switching issue, I feel it still needs optimization. I am currently using a separate node with the TiFlash engine to handle complex queries.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.