-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Airrecord find_each #102
Comments
Interesting.. Let me test if there's a time I will create PR for this one |
I hope you can add this, we are currently experiencing this exact bottleneck, and a paginated result would work so much better |
Part of me wonders if we could just expose the last
|
Hi team!
I am not experienced enough to write the proper tests for this and open a pull request, but I wanted to share the community my Rails inspired find_each for Airrecord. Instead of looping through the pagination and returning potentially thousands of records in one big array, this allows you to grab one page, process each record in that page, grab the next page, etc.
Example usage
For big queries and low memory servers it can really help!
Here's my config/airrecord.rb if anyone wants to add this to their application, and of course I would love to see this moved into a pull request.
Cheers!
The text was updated successfully, but these errors were encountered: