最近30天DynamoDB的用户的搜索记录
我的DynamoDB结构在某种程度上是我的pk和SK就像
pk = usr#123ACT#234和SK = ayt#epoch_time>
,而我的全局索引就像
gsi3pk = ACT#234 and gsi3sk =< epoch_time>
现在使用全局索引,我想获得最后30天的数据,councel_id = 234
my dynamodb structure is somehow for example my PK and SK is like
PK = USR#123ACT#234 and SK = AYT#<epoch_time>
and my global index are like
GSi3pk = ACT#234 and GSI3SK = <epoch_time>
now case is using global index I want to get data of last 30 days with account_id=234
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要查询最近30天的特定主键(帐号)和时间戳,您可以对此进行一些疑问:
To query for a specific primary key (of account number) and a timestamp in the last 30 days, you can query with some variant of this: