table1和table2之间存在外键关系
select count(1) from table1时间是0.187
而select count(1) from (table1 left join table2)的时间却是2秒多
这是为什么,如何优化啊!