-
Notifications
You must be signed in to change notification settings - Fork 77
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
Cursor based iteration #852
Comments
(This might be related to #207.) |
How do you think you would declare a collection to be iterated with cursor enumeration? Currently we have What kind of object would we return from |
This issue has been marked as stale because it has not been commented on in two months. |
I think this must have been addressed by #859 Once the PR mentioned above gets released, maintenance tasks will be able to specify any column(s) to be used as a @sj26 Let us know if that's something you were looking for! Thanks |
https://github.com/Shopify/maintenance_tasks/releases/tag/v2.6.0 includes that change. Can this be closed? |
I think it's safe to close. Feel free to reopen if released functionality is not what was initially requested. Thanks |
Maintenance tasks has been amazing for processing backfills etc across whole tables for us. But we often have tasks that need to operate on a subset of records, too. But ActiveRecord batch enumeration is forced to walk by primary key, and that tends to plan and execute poorly on large tables when the filter conditions address <~50% of the rows.
I would love to use arbitrary cursor-based pagination, not restricted to the primary key. With the landing of string cursors (#339; amazing, thank you!) and job-iteration's support for active record cursor enumeration, is the appetite to pursue cursor-based and/or custom enumeration strategies? Can we contribute to these efforts?
The text was updated successfully, but these errors were encountered: