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

feat: add dynamo block index migrator #3

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

Conversation

alanshaw
Copy link
Member

Adds a lambda that for a given CAR and CAR CID, will:

  1. Read multihashes for the CAR either by reading it's CARv2 side index or (if missing) read the CAR itself
  2. Batch get from dynamo existing items for each blockmultihash+carpath
    1. Change carpath for each item to be auto/carpark-prod-0/<CAR_CID>/<CAR_CID>.car
    2. Batch write new items with the changed carpath
    3. Batch delete the old items with the old carpath

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