为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
【概述】 场景 + 问题概述
【背景】 做过哪些操作
【现象】 业务和数据库现象
select /*+ READ_FROM_STORAGE(TIKV[o,p]) */ libcode key1, count(1) intValue from orderitem o where delivertype in(1,4) and (status = 3 or status = 4 or status = 9) and get_date >= str_to_date(‘2021-01-01 00:00:00’, ‘%Y-%m-%d %H:%i:%s’) and get_date <= str_to_date(‘2022-12-31 23:59:59’, ‘%Y-%m-%d %H:%i:%s’) and not exists(select ‘x’ from pickaddr_order_item p where p.orderitem_id = o.itemid) and (source_flag in(‘xxx’,‘other’) or (source_flag not in(‘xxx’) or source_flag is null)) group by libcode;
此SQL的执行计划一直使用tiflash
【问题】 当前遇到的问题
【业务影响】
【TiDB 版本】
tidb 5.3
【应用软件及版本】
【附件】 相关日志及配置信息