Skip to content

Paginate via find_each.#9345

Merged
ashercodeorg merged 1 commit into
stagingfrom
paginate
Jul 6, 2016
Merged

Paginate via find_each.#9345
ashercodeorg merged 1 commit into
stagingfrom
paginate

Conversation

@ashercodeorg

Copy link
Copy Markdown
Contributor

http://api.rubyonrails.org/classes/ActiveRecord/Batches.html#method-i-find_each

Note that I intend to run this script on production-console with this change (with small batch_size) to get a sense of how fast it will (won't) run.

@joshlory

joshlory commented Jul 6, 2016

Copy link
Copy Markdown
Contributor

Cool, TIL about find_each. LGTM!

@ashercodeorg ashercodeorg merged commit b4583b5 into staging Jul 6, 2016
@ashercodeorg ashercodeorg deleted the paginate branch July 6, 2016 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants