vogels
vogels copied to clipboard
Only 1 online index can be created or deleted simultaneously per table
I thought I saw another issue that mentions this somewhere but I can't find it now. Not sure how hard it would be to deal with this but DynamoDB won't allow you to make more than one index at a time.
Adding / removing indexes to an existing table is fairly complicated. The DynamoDB docs actually state you should be able to create multiple indexes on a table at once.
You can only create or delete one global secondary index per UpdateTable operation.
However, if you run multiple UpdateTable operations simultaneously, you can create
multiple indexes at a time. You can run up to five of these UpdateTable operations
on a table at once, and each operation can create exactly one index.
Vogels is implemented to attempt to create multiple indexes at a time, using multiple UpdateTable calls. However, DynamoDB rejects these secondary UpdateTable calls. I have a support ticket open with AWS about this mismatch between their docs and actual usage. So far they have yet to provide a definite answer on how DynamoDB should be working.
Thanks @ryanfitz.
Was there ever a response from AWS support? It's now 2.5 years later and I get this same error via the Java SDK!
@niccottrell As far as I know this repo is not maintained any more might want to ask the question over here https://github.com/clarkie/dynogels/issues or another dynamodb ORM like https://github.com/dynamoosejs/dynamoose