title: Are you allowed to use a find_each query with an includes statement?
body: <p>example:</p>
  
  <pre><code>Foobar.joins(:baz).includes(:baz).count
  =&gt; 22926
  Foobar.joins(:baz).includes(:baz).find_each.count
  =&gt; 998
  Foobar.joins(:baz).find_each.count
  =&gt; 22926
  </code></pre>
  
  <p>The generated sql in the correct case (third) is several batches of sql that looks like:</p>
  
  <pre><code>SELECT  "foobar".* FROM "foobar" INNER JOIN "baz" ON 
  "baz"."foobar_id" = "foobar"."id" ORDER BY "foobar"."id" ASC LIMIT $1
  </code></pre>
  
  <p>in the failing (second) case there is a single query that looks like:</p>
  
  <pre><code>SELECT  "foobar"."id" AS t0_r0
   "baz"."id" AS t1_r0
   "baz"."foobar_id" AS t1_r1
   FROM "foobar" INNER JOIN "baz" ON "baz"."foobar_id" = "foobar"."id" 
   ORDER BY "foobar"."id" ASC LIMIT $1
  </code></pre>
  
  <p>where all of the fields are listed as a different temporary variable (e.g. <code>t0_r0</code>) for the different columns on each table (in the actual query there are 37 split 30 on the first object, 7 on the second). </p>
  
  <p>Is this a bug? are <code>includes</code> not allowed in a <code>find_each</code> query? Am I doing something wrong?</p>
  
  <p>The relationship between <code>Foobar</code> and <code>Baz</code> is <code>Foobar</code> <code>has_one</code> <code>Baz</code> and <code>Baz</code> <code>belongs_to</code> <code>Foobar</code>.</p>