DynamoDB:扫描多个非关键属性 [英] DynamoDB: Scan on multiple non key attribute

查看:86
本文介绍了DynamoDB:扫描多个非关键属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的应用程序从mysql迁移到DynamoDB,我有一个表,其中根据某些条件匹配5个非关键属性。该表将有很多读取操作(扫描)

I am migrating my app from mysql to DynamoDB, I have a table where i match 5 non key attribute based on certain conditions. This table will have lots of read operations(scan)

问题:是否有任何我可以不必设计表的方式扫描表格

Question:Is there are any possible ways that i design a table in such a way that i don't have to scan the table

路径上的任何灯都将有所帮助。
谢谢

Any Light on the path would be helpful. Thanks

推荐答案

我相信最近宣布的全局二级索引是您所需要的。

I believe the recently announced Global Secondary Indexes is what you need.

与本地二级索引一样,查询时不能只有一个索引。

As with Local Secondary Indexes - you can't you have than one index when querying.

这意味着您可能必须移动一些该逻辑进入应用程序层。

This means you will probably have to move some of that logic into the application layer.

这篇关于DynamoDB:扫描多个非关键属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆