문제

Is there any way to get the timestamp for the most recent update on a DynamoDB table?

도움이 되었습니까?

해결책

No. This is not part of the DynamoDB api. Fortunately this is easy to implement yourself. Add a column to each item for each UpdateItem or PutItem request with the current time. This will insert the time according to your application servers instead of DynamoDB itself, but these ideally will be the same

다른 팁

If you are just interested in an approximate time, you can get the timestamp of the write operations rounded to the nearest 5 minutes by looking at the SuccessfulRequestLatency metric for the PutItem operation inside Cloudwatch. You will see an entry on the x-axis only if there was a write operation in that 5-minutes time segment.

In the following screenshot, you can see that there was at least one write operation around 10:30 and 10:35, too: enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top