DynamoDB Query considerably slow when creating resource Table
after each query
call
#3630
Unanswered
GuillermoOvejeroSanchez
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Here is the boto3 DynamoDB resources documentation: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/table/index.html. (Also general resources documentation for reference). I'm not sure if I understand your use case here — can you just create the table resource once and reuse it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Description
DynamoDB Query is considerably slow when creating resource
Table
after eachquery
call. We have tested creating theTable
only once before thequery
calls and it improves performance significantly when making thousands of requestsVersion used from boto3 is latest as today (15 March 2023)
boto3==1.26.91
Tested with: @EduardoHerreraM
Code
Results
Tested on different laptops:
Laptop 1:
Laptop 2:
Questions
Table
resource?Beta Was this translation helpful? Give feedback.
All reactions