Pergunta

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

Foi útil?

Solução

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top