开发者

Rails query speed

开发者 https://www.devze.com 2023-02-19 19:22 出处:网络
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?

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

精彩评论

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

关注公众号