Hello fellow developers,
I'm currently running a skill which queries a DynamoDB table based on info from an accessToken obtained through Cognito account linking.
I'm not using the ask 2.0 persistent DB functionality because the only options for table partition key are the "ask id", or device ID. Because my skill utilizes a web based companion app which also leverages the table, I can't use those variables as partition key because they can't be obtained outside of of the alexa skill invocation.
Because of the conditions above I'm using the ASK v1 style DynamoDB request style using async as this info is a dependency for future steps. Unfortunately this method is causing a four or more second delay when launching the skill as the query completes. Some added info:
- The table only has one record, so its not a scanning speed issue.
- The skill and table are both being run in US-East-1.
Does anyone know of a way around this? Or a way to utilize the new ask 2.0 persistent db setup with partition keys other than those mentioned above? I'm open to any ideas, thanks all!
**Update, I changed to "get" from "Query", but the delay is still 3 to 4 seconds.