Skip to content

feat: add dynamo block index migrator#3

Open
alanshaw wants to merge 2 commits intomainfrom
feat/add-dynamo-block-index-migrator
Open

feat: add dynamo block index migrator#3
alanshaw wants to merge 2 commits intomainfrom
feat/add-dynamo-block-index-migrator

Conversation

@alanshaw
Copy link
Copy Markdown
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