dynamodb putitem is successful, but there is no some data missing

0

I use nodejs and aws-sdk to use dynamicodb.

It's weird using putitem. I was successful in the result of Putitem. However, if I check the contents of the table, only a part of the data is included.

The table contains exactly 100 items normally, and only some of the data that exceeds 100.

Similar results were obtained by using batchWrite instead of putitem.

What more should I check?

  • How do you keep the table to have 100 items? Is there a process that deletes items? Are you using TTL on the items? How do you check for the items? Scan? Management Console?

  • Thank you for your attention. Finally, the number of data I put in is 500. However, there are only 100 accurate data that can be checked in the aws console. One data size is confirmed to be approximately 0.2k. I've tried it on-demand and I've tried Write Capacity Units(30).

    A value higher than the measurable write value in aws, and no warning was generated in aws cloudwatch.

    I didn't ask to delete the data and I didn't set up the TTL. I checked the data in aws console. It was confirmed that the value of httresponse in the result of aws was OK and the error value was null.

    Just in case, I tried to change the time from 1 to 10 seconds with settimeout every time I put one item, but the result was the same.

  • The items that you can see in the aws management console are not the only ones in the table. You can also paginate in the console to see more items that are the result of a SCAN command. Please note that in the console you can also see the number of items (under "Items summary") in a table instead of the list of them. You can refresh that number using the "Get live item count" button.

asked 2 years ago937 views
1 Answer
0

Please make sure you're doing a strongly consistent read, not eventually consistent read. If you're doing EC reads then it's expected and normal to not see a very recent write.

AWS
answered 2 years ago
  • Thank you for your answer. I tried transactionwrite and I didn't check the data in my node, but in aws console. Of course, data was checked even after time, but data was not included.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions