有这么一条语句
insert into tb_a 
select a,sum(b),count(distinct c)
from tb_b
group by a 
tb_b数量巨大,上亿条了,跑起来太慢了。
这条sql感觉很简单了,不知道是不是distinct项还能优化一下?