开发者

Rails query speed

Just discovered strange behavior:

Model.includes(:another).all
Model.includes(:another)

The first one is 5 times faster than开发者_如何学运维 the second, could you explain it?

How to achieve first method's speed but returning Relation instance for use with Kaminari?


It is probably only virtual difference, just on logs. When checked it in Firebug, loading speed was identical.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜