Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiter for secondary indexes #3149

Open
2 tasks
thomaswitt opened this issue Nov 27, 2024 · 1 comment
Open
2 tasks

Waiter for secondary indexes #3149

thomaswitt opened this issue Nov 27, 2024 · 1 comment
Assignees
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@thomaswitt
Copy link

thomaswitt commented Nov 27, 2024

Describe the feature

When creating secondary indexes, DynamoDB can take a significant random time, even on an empty database. On one hash_key only index (no range key) I am waiting for about 2-3 minutes until it exits the backfilling state.

When you want to create data in a migration which depends on the new index, this is bad.

For creating a table, there's a handy Waiter in the Gem, but that only works on table_exists and table_not_exists.

When using the AWS CLI, I can get the index status:

. $ aws dynamodb describe-table --table-name MYAPP_production|jq '.Table.GlobalSecondaryIndexes[] | {IndexName, IndexStatus}'
{
  "IndexName": "user_email_gsi",
  "IndexStatus": "ACTIVE"
}

It would be great if that waiter would be available natively in the SDK.

Use Case

Creating data which depends on the existance of a new secondary index.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

latest

Environment details (OS name and version, etc.)

latest

@thomaswitt thomaswitt added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Nov 27, 2024
@mullermp
Copy link
Contributor

Thanks for the feature request. This unfortunately is an upstream request to the dynamodb team who owns the modeling which includes waiters. I can't guarantee delivery or timeline of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants