Skip to content
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

Support segment/total_segments for scans #593

Open
mrkamel opened this issue Oct 17, 2022 · 1 comment
Open

Support segment/total_segments for scans #593

mrkamel opened this issue Oct 17, 2022 · 1 comment

Comments

@mrkamel
Copy link
Contributor

mrkamel commented Oct 17, 2022

Hi,

it seems the segment/total_segments options can not be used yet from within dynamoid (right?), but i think this would be a really great addition to parallelize requests:

MyTable.with_segment(3, total_segments: 16).where(some_field: 'value').delete

What do you think? Any plans adding it? Would you be open for PRs regarding it?

@andrykonchin
Copy link
Member

Hey. Agree, it may be useful. The proposed signature (with_segment(int, total_segments: int)) looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants