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

Use promise queues and batch writes for speed #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

andrhamm
Copy link

@andrhamm andrhamm commented Aug 3, 2023

  • Allows transformations to specify additional options: scanParams function to return additional scan options like FilterExpression, serializeSkip getter should return true if the skip function should be run serially due to heavy async work, serializeForward getter should return true if the forward function should be run serially due to heavy async work
  • Uses p-queue (well, the CommonJS fork p-queue-cjs) to parallelize scan reads and batch writes
  • Skips record update if the transformed output is identical to the scanned item (uses _.isEqual)
  • Logs item diffs

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

Successfully merging this pull request may close these issues.

1 participant