binchoo / PaimonGanyu

여행 비서 페이몬! Genshin Impact AWS workflows & KakaoTalk chatbot skills
https://pf.kakao.com/_mtPFb
GNU General Public License v3.0
7 stars 1 forks source link

[DailyCheck][Infra] Free & automatic removal of old UserDailycheck items #19

Closed binchoo closed 2 years ago

binchoo commented 2 years ago

As-is The UserDailycheck table currently contains 3K items. Most of them are too old to be shown in the user's daily check-in history (that shows the 4 most recent histories).

To-be Use DynamoDB's TTL feature. This will remove old items without charge for capacities. I want to remove items that are seven days old.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html https://dynobase.dev/dynamodb-ttl/

binchoo commented 2 years ago

image

image