Hi, I have come to conclusion that Active Record cannot stream, or enumerate over rows; this I base on the contract with Connection Adapters that always return arrays of hashes -- all rows from the query (with regards to :limit and other similar options). In other words I didn''t find any way for Connection Adapter to return an Enumerable (or similar) that fetches the next row from the database on demand -- in fact streaming the results of a query. I understand that there is support for batch in ActiveRecord::Batches but that is not the same as on demand streaming of results. Interesting work on this has been done for PostgreSQL in https://github.com/zoocasa/activerecord-postgresql-cursors. Are there any plans for more general inclusion of cursors / streaming results in Active Record? Can anyone suggest an alternative? thanks, Zoran -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1l-60b8Z1OUJ. For more options, visit https://groups.google.com/groups/opt_out.