[英]Need idea on how to query dynamo db for specific date range in node
Need to design a table in Dynamo DB to get the month-wise data like how many users logged in to the application on a particular time frame as below需要在 Dynamo DB 中设计一个表来获取每月数据,例如在特定时间范围内有多少用户登录到应用程序,如下所示
I am using node js in lambda with dynamo DB.我在 lambda 中使用带有 dynamo DB 的节点 js。 Need help with table design and how to use filter to get the data for the above requirement.
在表格设计以及如何使用过滤器获取上述要求的数据方面需要帮助。
Thanks in advance提前致谢
If your user items are small, a single query for users can return ~5,000 items (all your users).如果您的用户项目很小,则对用户的单个查询可以返回约 5,000 个项目(您的所有用户)。 If you run this every 10 minutes, your monthly on-demand cost is $0.12.
如果您每 10 分钟运行一次,则每月的按需成本为 0.12 美元。
Just query all the users and calculate the metrics on the server, it's not worth the time to design anything more complex.只需查询所有用户并计算服务器上的指标,不值得花时间设计更复杂的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.