clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
490 stars 110 forks source link

Allow more than 5 concurrent index creation #47

Closed M1chaelTran closed 6 years ago

M1chaelTran commented 7 years ago

I noticed that we limit to 5 concurrent index creation at a given time https://github.com/clarkie/dynogels/blob/fd69d3758ce6a8b7cb17043f7be83ccff9302448/lib/table.js#L658 There's also a ticket on Vogels https://github.com/ryanfitz/vogels/issues/125 for this issue

It used to be a limitation by AWS Dynamodb, but not anymore! Would love some help to correct remove this limitation.

jkav77 commented 6 years ago

I'm going to close this for now. If you are still interested in this issue let me know.

cdhowie commented 6 years ago

This is still a limitation, from what I can see.

In general, you can have up to 10 CreateTable, UpdateTable, and DeleteTable requests running simultaneously (in any combination). In other words, the total number of tables in the CREATING, UPDATING or DELETING state cannot exceed 10.

The only exception is when you are creating a table with one or more secondary indexes. You can have up to 5 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent requests below 5.