def each(node = true, rel = nil, &block)
return super if with_associations_spec.size.zero?
query_from_association_spec.pluck(identity, with_associations_return_clause).map do |record, eager_data|
eager_data.each_with_index do |eager_records, index|
record.association_proxy(with_associations_spec[index]).cache_result(eager_records)
end
block.call(record)
end
end