module ActiveGraph::Node::Query::QueryProxyFindInBatches

Public Instance Methods

find_each(options = {}) { |result| ... } click to toggle source
   # File lib/active_graph/node/query/query_proxy_find_in_batches.rb
11 def find_each(options = {})
12   query.return(identity).find_each(identity, @model.primary_key, options) do |result|
13     yield result[identity]
14   end
15 end
find_in_batches(options = {}) { |map { |record| record }| ... } click to toggle source
  # File lib/active_graph/node/query/query_proxy_find_in_batches.rb
5 def find_in_batches(options = {})
6   query.return(identity).find_in_batches(identity, @model.primary_key, options) do |batch|
7     yield batch.map { |record| record[identity] }
8   end
9 end