简体   繁体   中英

AWS DynamoDB Scan For Value in Array

I am relatively new to AWS and DynamoDB. I have created a table with an array property. Is it possible for me to scan the array and return objects that contain a certain string?

Yes, you can do this. But keep in mind that a scan is an expensive operation which consumes a lot more read capacity units than a query operation. It would be better if you create a primary key on the column and do a query. You can find some examples here:

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryScanORMModelExample.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM