经常碰到类似这样的语句
假设有5个表,每个表都是500万左右的记录表名是a,b,c,d,e语句如下
select a.idfrom aleft join b on a.id=b.idleft join c on c.custno=d.custnoleft join d on d.name=e.name and e.startdate>='20171026'
假设表上语句where字段上的索引都有,统计信息也是最新的,请问这样的语句如何优化?
可优化的空间很小,如果base table a,b,c,d的数据变化量很小,可以把查询结果固化到MQT中,以提高查询性能。
关于TWT使用指南社区专家合作厂商入驻社区企业招聘投诉建议版权与免责声明联系我们 © 2024talkwithtrend — talk with trend,talk with technologist京ICP备09031017号-30