Comment update.
This commit is contained in:
parent
cf6f86cb2f
commit
f735f8c6f5
|
@ -37,6 +37,8 @@ const migration = async () => {
|
||||||
// at the end make sure design doc is ready
|
// at the end make sure design doc is ready
|
||||||
await sdk.tables.sqs.syncDefinition()
|
await sdk.tables.sqs.syncDefinition()
|
||||||
// only do initial search if environment is using SQS already
|
// only do initial search if environment is using SQS already
|
||||||
|
// initial search makes sure that all the indexes have been created
|
||||||
|
// and are ready to use, avoiding any initial waits for large tables
|
||||||
if (env.SQS_SEARCH_ENABLE) {
|
if (env.SQS_SEARCH_ENABLE) {
|
||||||
const tables = await sdk.tables.getAllInternalTables()
|
const tables = await sdk.tables.getAllInternalTables()
|
||||||
// do these one by one - running in parallel could cause problems
|
// do these one by one - running in parallel could cause problems
|
||||||
|
|
Loading…
Reference in New Issue