Doctrine(Symfony)选择很慢,左边连接很多

时间:2017-11-20 15:23:54

标签: sql symfony doctrine doctrine-query

Doctrine很长时间(126.04 ms)进行查询并返回数据,如果查询包含select with many(6)LEFT JOIN并返回许多数据(当1200行时更多)

我的查询:

https://gist.github.com/Neokortex/218463a50f57529d6e0caf9b82fc4aa9

一周前我没有注意到这一点。为什么会这样?

更新:索引无济于事。

服务器非常强大

Intel(R)Xeon(R)CPU E3-1230 v5 @ 3.40GHz,8核

32 GB内存

我哭了:(

0 个答案:

没有答案