Closed cdhowie closed 7 years ago
The least-intrusive place I can find to specify this is on the model's config, since internals.waitTillActive
has access to the model. However, this requires it to be specified per table, in the schema.
Perhaps it would make more sense to extend the second argument to createTables
? Right now it is supposed to be a bunch of objects keyed by table name. Perhaps we can add a special $dynogels
key to hold extra config information like this?
dynogels.createTables({ $dynogels: { pollingDelay: 50 } }, (err, results) => ...)
It would be nice to be able to specify a custom value for the DescribeTable poll rate when creating tables. For service tests, we're using Dynalite to mock DynamoDB, and it can be configured to create tables instantly. Waiting 1sec per table causes fairly significant test startup delay.