Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 即使我没有包括它,我也会被检测到_Ruby On Rails_Ruby On Rails 5.2 - Fatal编程技术网

Ruby on rails 即使我没有包括它,我也会被检测到

Ruby on rails 即使我没有包括它,我也会被检测到,ruby-on-rails,ruby-on-rails-5.2,Ruby On Rails,Ruby On Rails 5.2,我使用bullet gem检测N+1个查询 offers. includes( :timezone, { completed_transition: [:talents_job] } ) 但是我越来越 user: prateek GET api_url AVOID eager loading detected CompletedTransition => [:pipeline_step] Remove from your finder:

我使用bullet gem检测N+1个查询

offers.
    includes(
      :timezone,
      { completed_transition: [:talents_job] }
    ) 
但是我越来越

user: prateek
GET api_url
AVOID eager loading detected
  CompletedTransition => [:pipeline_step]
  Remove from your finder: :includes => [:pipeline_step]
Call stack

可能的问题是什么?

您是否对
已完成的\u转换进行查询?类似于:
offers.map{| offer | offer.completed_transition.where()…}
。您在模型时区调用
includes时有默认范围吗?没有,我没有默认范围。您可以共享相关模型的代码设置吗?提供、完成过渡、人才工作?