新手问题 请教关于 bullet 的 “Unused eager loading” 提示

huopo125 · August 24, 2014 · Last by huopo125 replied at August 25, 2014 · 2416 hits

使用 bullet 经常遇到如下的提示,但是按照提示更改后又会出现 N+1 问题,想请教有关 Rails 的 eager loading 主要做什么?

Unused Eager Loading detected
  Oa::Hotelapp => [:user]
  Remove from your finder: :include => [:user]

意思就是说你 include 了,但被 include 的东西却没用过。

#1 楼 @huacnlee 恩,主要是我去除后,又会提示需要添加;另外,能否解释一下 eager loading 的作用呢,看 Guides 上的配置解释,不是太明白,谢谢了。

You need to Sign in before reply, if you don't have an account, please Sign up first.